Create 5 - Ending Time.py

This commit is contained in:
Lukas Baumann 2021-02-18 10:37:07 +01:00 committed by GitHub
parent b3fb5892cc
commit 662e247790
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

11
8/5 - Ending Time.py Normal file
View File

@ -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)