Stopwatch

This commit is contained in:
2023-06-24 21:01:42 +02:00
parent c2f131b954
commit dbfdfbbab8

10
stopwatch.py Normal file
View 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