백준-2884번(알림시계)-python
def alarm(x,y):
h=list(range(0,24))
m=list(range(0,60))
if 45<=y:
print(h[x],m[y-45])
else:
print(h[x-1],m[y-45])
a,b=map(int,input().split())
alarm(a,b)
'알고리즘 > 백준' 카테고리의 다른 글
백준-11021번(A+B-7)-python (0) | 2023.11.23 |
---|---|
백준-8393번(합)-python (0) | 2023.11.23 |
백준-2741번(N찍기)-python (0) | 2023.11.23 |
백준-2739번-구구단-python (0) | 2023.11.23 |
백준-10950번(A+B-3)-python (2) | 2023.11.22 |