Create 5 - Ending Time.py
This commit is contained in:
parent
b3fb5892cc
commit
662e247790
11
8/5 - Ending Time.py
Normal file
11
8/5 - Ending Time.py
Normal 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)
|
Loading…
Reference in New Issue
Block a user