-
Notifications
You must be signed in to change notification settings - Fork 0
/
runtimes.sh
executable file
·39 lines (38 loc) · 933 Bytes
/
runtimes.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
#!/bin/bash
echo "[CUBIC]"
echo "test1.in"
time (python3 cubic.py < test1.in > /dev/null)
echo "test2.in"
time (python3 cubic.py < test2.in > /dev/null)
echo
echo
echo "[QUADRATIC]"
echo "test1.in"
time (python3 quadratic.py < test1.in > /dev/null)
echo "test2.in"
time (python3 quadratic.py < test2.in > /dev/null)
echo "test3.in"
time (python3 quadratic.py < test3.in > /dev/null)
echo
echo
echo "[LINEAR]"
echo "test1.in"
time (python3 linear.py < test1.in > /dev/null)
echo "test2.in"
time (python3 linear.py < test2.in > /dev/null)
echo "test3.in"
time (python3 linear.py < test3.in > /dev/null)
echo "test4.in"
time (python3 linear.py < test4.in > /dev/null)
echo
echo
echo "[C++]"
g++ linear.cc -o linear
echo "test1.in"
time (./linear < test1.in > /dev/null)
echo "test2.in"
time (./linear < test2.in > /dev/null)
echo "test3.in"
time (./linear < test3.in > /dev/null)
echo "test4.in"
time (./linear < test4.in > /dev/null)