파이썬 2530
[Python] 백준 #2530번: 인공지능 시계
2023.12.18
· BeakJoon/Python
코드 h,m,s = map(int,input().split()) sec = int(input()) s1 = (s+sec)%60 #최종 초 m1 = (s+sec)//60 m2 = (m+m1)%60 # 최종 분 h1 = (m+m1)//60 h2 = (h+h1)%24 # 최종 시각 print(h2,m2,s1)
이전
1
다음
'파이썬 2530' 태그의 글 목록
구독하기
테마
상단으로
티스토리툴바