diff options
Diffstat (limited to 'scripts/.scripts')
| -rwxr-xr-x | scripts/.scripts/cpp_ps.sh | 3 | ||||
| -rwxr-xr-x | scripts/.scripts/pscontests.sh | 5 |
2 files changed, 2 insertions, 6 deletions
diff --git a/scripts/.scripts/cpp_ps.sh b/scripts/.scripts/cpp_ps.sh index 1b09fe5..b2c2600 100755 --- a/scripts/.scripts/cpp_ps.sh +++ b/scripts/.scripts/cpp_ps.sh @@ -4,8 +4,7 @@ read input if [ "$input" = "y" ]; then mkdir $1 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 + cp ~/test/cptemplate/main.cpp . nvim main.cpp fi diff --git a/scripts/.scripts/pscontests.sh b/scripts/.scripts/pscontests.sh index e65a597..ff4f1e3 100755 --- a/scripts/.scripts/pscontests.sh +++ b/scripts/.scripts/pscontests.sh @@ -7,8 +7,5 @@ mkdir ${REPLY} cd ${REPLY} for p in $PROBLEMS do - 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 + echo "y" | ~/.scripts/cpp_ps.sh $p done |
