Agorithm/백준 알고리즘

백준 알고리즘 2530번 인공지능 시계(python)

kimjinho1 2021. 2. 4. 10:57
728x90
반응형

단순 사칙연산 문제이다.

A, B, C = map(int, input().split())
D = int(input())
t = A*60*60 + B*60 + C + D
h = t//60//60 % 24
m = t//60 % 60
s = t%60
print(h, m, s)
728x90
반응형