-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrun.py
38 lines (32 loc) · 926 Bytes
/
run.py
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
import os
com = 'time ./ICPC < data/test.in >> test.out'
os.system(com)
print("Diffing Output")
com = 'diff data/test.out test.out'
os.system(com)
com = 'time ./ICPC < data/small.in >> small.out'
os.system(com)
print("Diffing Output")
com = 'diff data/small.out small.out'
os.system(com)
com = 'time ./ICPC < data/big.in >> big.out'
os.system(com)
print("Diffing Output")
com = 'diff data/big.out big.out'
os.system(com)
com = 'time ./ICPC < data/bigger.in >> bigger.out'
os.system(com)
print("Diffing Output")
com = 'diff data/bigger.out bigger.out'
os.system(com)
com = 'time ./ICPC < data/error.in >> error.out'
os.system(com)
print("Diffing Output")
com = 'diff data/error.out error.out'
os.system(com)
for i in range(3, 8):
com = 'time ./ICPC < data/' + str(i) + '.in >> '+str(i)+'.out'
os.system(com)
print("Diffing Output")
com = 'diff ' + str(i)+'.out '+'data/'+str(i)+'.out'
os.system(com)