[백준] 2530번 : 인공지능 시계 - Python(파이썬)

강재원·2022년 9월 14일
0

[코딩테스트] Python

목록 보기
34/200



https://www.acmicpc.net/problem/2530

h,m,s=map(int,input().split())
n=int(input())
sum=s+n
m+=sum//60
sum%=60
h+=m//60
m%=60
h%=24
print("%d %d %d"%(h,m,sum))
profile
개념정리 & 문법 정리 & 알고리즘 공부

0개의 댓글