aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/.scripts/cpp_ps.sh2
-rwxr-xr-xscripts/.scripts/pscontests.sh8
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