Created
March 21, 2023 06:30
-
-
Save jc3wrld999/4dba79d2af7201bedbc77dbb3c139a80 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def alarm(): | |
''' | |
백준 2884 | |
''' | |
H , M = map(int, input().split()) | |
total = H * 60 + M - 45 | |
if total < 0: | |
total += 60 *24 | |
H = total // 60 | |
M = total % 60 | |
print(H, M) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment