boj step 2 rework

This commit is contained in:
2024-02-10 14:43:37 +09:00
parent 2b42776661
commit 2b9511b074
2 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
h, m = map(int, input().split())
d = int(input())
m_o = (m + d) // 60
m_new = (m + d) % 60
h_new = (h + m_o) % 24
print(h_new, m_new)