diff options
| author | Omar Magdy <omar.professional8777@gmail.com> | 2022-06-02 14:08:03 +0200 |
|---|---|---|
| committer | Omar Magdy <omar.professional8777@gmail.com> | 2022-06-02 14:08:03 +0200 |
| commit | 3f1f70182a80fb6ff109db783b1af97af784cbf8 (patch) | |
| tree | bf022167c7c345fff273cc7b49448953f987b988 /scripts | |
| parent | 166551ea37b4e166508779452d52708e0b0b92a3 (diff) | |
| download | dotfiles-3f1f70182a80fb6ff109db783b1af97af784cbf8.tar.xz dotfiles-3f1f70182a80fb6ff109db783b1af97af784cbf8.zip | |
Edited some scripts
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/.scripts/cpp_ps.sh | 2 | ||||
| -rwxr-xr-x | scripts/.scripts/pscontests.sh | 8 |
2 files changed, 7 insertions, 3 deletions
diff --git a/scripts/.scripts/cpp_ps.sh b/scripts/.scripts/cpp_ps.sh index edf6312..ac0eb2d 100755 --- a/scripts/.scripts/cpp_ps.sh +++ b/scripts/.scripts/cpp_ps.sh @@ -6,7 +6,7 @@ if [ "$input" = "y" ]; then cd $1 touch main.cpp echo -e "#include<bits/stdc++.h>\n\nusing namespace std;\n\nint main () {\n\tios_base::sync_with_stdio(false);\n\tcin.tie(NULL);\n\tint tt;\n\tcin >> tt;\n\twhile(tt--){\n\n\t}\n}" > main.cpp - touch input.txt + touch inp nvim main.cpp fi diff --git a/scripts/.scripts/pscontests.sh b/scripts/.scripts/pscontests.sh index cfadcb1..ab35076 100755 --- a/scripts/.scripts/pscontests.sh +++ b/scripts/.scripts/pscontests.sh @@ -7,6 +7,10 @@ mkdir ${REPLY} cd ${REPLY} for p in $PROBLEMS do - touch $p.cpp - echo -e "#include<bits/stdc++.h>\n\nusing namespace; std\n\nint main () {ios_base::sync_with_stdio(false);\ncin.tie(NULL);\nint tt;\nwhile(tt--){\n}}" > $p.cpp + mkdir $p + cd $p + touch main.cpp + echo -e "#include<bits/stdc++.h>\n\nusing namespace std;\n\nint main () {\n\tios_base::sync_with_stdio(false);\n\tcin.tie(NULL);\n\tint tt;\n\tcin >> tt;\n\twhile(tt--){\n\n\t}\n}" > main.cpp + touch inp + cd .. done |
