https://www.acmicpc.net/problem/2884
h, m = map(int, input().split())
if 45 <= m:
m2 = m - 45
if m < 45:
if h==0:
h=23
else:
h = h - 1
m2 = 60 - (45-m)
print(h, end=" ")
print(m2)
728x90
':: Python ๐ฉ > ์๊ณ ๋ฆฌ์ฆ' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
BFS & DFS (1) | 2023.02.16 |
---|---|
[์ฝ๋ฉ] [๋ฐฑ์ค 14681 python] (0) | 2023.01.19 |
[์ฝ๋ฉ] [๋ฐฑ์ค 10808 python] (0) | 2023.01.19 |
๋๊ธ