aboutsummaryrefslogtreecommitdiff
path: root/scripts/.scripts/pscontests.sh
diff options
context:
space:
mode:
authorOmar Magdy <omar.professional8777@gmail.com>2022-05-06 16:30:44 +0200
committerOmar Magdy <omar.professional8777@gmail.com>2022-05-06 16:30:44 +0200
commit9c9625fec8f35932f37973f31677a21f3184511e (patch)
treed7a89f53ae72f8f882095584b2fa7d5392967fe8 /scripts/.scripts/pscontests.sh
parent7fe61dd5d84e47c4f8dc5a3059711cfaa5253220 (diff)
downloaddotfiles-9c9625fec8f35932f37973f31677a21f3184511e.tar.xz
dotfiles-9c9625fec8f35932f37973f31677a21f3184511e.zip
Edited pscontests.sh made that it appends the classic cpp program to each problem of the contest
Diffstat (limited to 'scripts/.scripts/pscontests.sh')
-rwxr-xr-xscripts/.scripts/pscontests.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/scripts/.scripts/pscontests.sh b/scripts/.scripts/pscontests.sh
index d476cc8..1536f96 100755
--- a/scripts/.scripts/pscontests.sh
+++ b/scripts/.scripts/pscontests.sh
@@ -7,9 +7,6 @@ mkdir ${REPLY}
cd ${REPLY}
for p in $PROBLEMS
do
- mkdir $p
- cd $p
touch $p.cpp
- cd ..
+ echo -e "#include<bits/stdc++.h>\n\nusing namespace std\n\nint main () {\n\n}" > $p.cpp
done
-cd ..