From dbfdfbbab8b96aad1ae872e017d50d72aabdb1d5 Mon Sep 17 00:00:00 2001 From: Jethro Stapelbroek Date: Sat, 24 Jun 2023 21:01:42 +0200 Subject: [PATCH] Stopwatch --- stopwatch.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 stopwatch.py diff --git a/stopwatch.py b/stopwatch.py new file mode 100644 index 0000000..88659aa --- /dev/null +++ b/stopwatch.py @@ -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 \ No newline at end of file