5928번 풀이 [Python]

sua·2022년 5월 26일
0

Baekjoon

목록 보기
36/161
post-thumbnail

문제


풀이

a, b, c = map(int, input().split())

n1 = a * 24 * 60 + b * 60 + c
n2 = 11 * 24 * 60 + 11 * 60 + 11

s = n1 - n2

if s < 0 :
    print(-1)
else :
    print(s)
profile
가보자고

0개의 댓글