Stopwatch
This commit is contained in:
10
stopwatch.py
Normal file
10
stopwatch.py
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
n = int(input())
|
||||||
|
if n % 2 != 0:
|
||||||
|
print("still running")
|
||||||
|
else:
|
||||||
|
seconds = 0
|
||||||
|
for _ in range(0, n, 2):
|
||||||
|
a, b = map(int, (input(), input()))
|
||||||
|
seconds += b - a
|
||||||
|
print(seconds)
|
||||||
|
5
|
||||||
Reference in New Issue
Block a user