-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcode.sh
executable file
·42 lines (42 loc) · 1008 Bytes
/
code.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
cd ABC
for((i=1;i<=120;i++))
do
cd $i
if [ i < 10 ]; then
cd a
if [ ! -f test ]; then
oj dl "https://atcoder.jp/contests/abc00$i/tasks/abc00""$i""_1"
fi
cd ..
cd b
if [ ! -f test ]; then
oj dl "https://atcoder.jp/contests/abc00$i/tasks/abc00""$i""_2"
fi
cd ..
fi
if [ i < 20 ]; then
cd a
if [ ! -f test ]; then
oj dl "https://atcoder.jp/contests/abc0$i/tasks/abc0""$i""_a"
fi
cd ..
cd b
if [ ! -f test ]; then
oj dl "https://atcoder.jp/contests/abc0$i/tasks/abc0""$i""_b"
fi
cd ..
fi
if [ i < 100 ]; then
cd a
if [ ! -f test ]; then
oj dl "https://atcoder.jp/contests/abc$i/tasks/abc""$i""_a"
fi
cd ..
cd b
if [ ! -f test ]; then
oj dl "https://atcoder.jp/contests/abc$i/tasks/abc""$i""_b"
fi
cd ..
fi
cd ..
done