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

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