From 662e247790661ca6fd26b9f46067de061175e77f Mon Sep 17 00:00:00 2001 From: Lukas Baumann Date: Thu, 18 Feb 2021 10:37:07 +0100 Subject: [PATCH] Create 5 - Ending Time.py --- 8/5 - Ending Time.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 8/5 - Ending Time.py diff --git a/8/5 - Ending Time.py b/8/5 - Ending Time.py new file mode 100644 index 0000000..cde9990 --- /dev/null +++ b/8/5 - Ending Time.py @@ -0,0 +1,11 @@ +t = input() +D = int(input()) +h = int(t[:2]) +m = int(t[3:]) +m += D +h += m//60 +m = str(m%60) +m = "0" * (2-len(m)) + m +h = str(h%24) +h = "0" * (2-len(h)) + h +print(h + ":" + m)