aboutsummaryrefslogtreecommitdiff
path: root/scripts/.scripts/pscontests.sh
blob: cfadcb17d9b05308d4f012cc69ba285dacd019f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

echo -n "Contest Name? : "
read
PROBLEMS="A B C D E F"
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
done