Stopwatch
This commit is contained in:
1 parent
c2f131b954
commit
dbfdfbbab8
1 file changed
+10
@@ -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