728x90
반응형
단순 사칙연산 문제이다.
D, H, M = map(int, input().split())
t1 = D*24*60 + H*60 + M
t2 = 11*24*60 + 11*60 + 11
t = t1 - t2
if t < 0:
print(-1)
else:
print(t)
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 6764번 Sounds fishy!(python) (0) | 2021.02.05 |
---|---|
백준 알고리즘 6763번 Speed fines are not fine!(python) (0) | 2021.02.05 |
백준 알고리즘 5893번 17배(python) (0) | 2021.02.04 |
백준 알고리즘 5596번 시험 점수(python) (0) | 2021.02.04 |
백준 알고리즘 5575번 타임 카드(python) (0) | 2021.02.04 |