Logo
(追記) (追記ここまで)

25830번 - Microwave Mishap 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 1024 MB34125021478.388%

문제

Donald is very hungry. He grabs a TV dinner, puts it in the microwave, and enters 02:15 to cook it for 2 minutes and 15 seconds. Unknown to Donald, microwave takes these values as hours and minutes, i.e., microwave takes 02:15 as 2 hours and 15 minutes (not 2 minutes and 15 seconds). We need to tell Donald how much extra (i.e., the additional time) his food will be cooking. That is, we need to tell Donald that his food will cook 2 hours, 12 minutes, and 45 seconds more (longer) than what he was expecting!

Given the initial time in the form of MM:SS, where the input is actually taken as HH:MM, determine how much extra the food will be in the microwave. Provide this info in the form of HH:MM:SS.

입력

Input will consist of a single line in the form of MM:SS, representing what Donald has entered. MM and SS will be in the range of 00 and 59 (inclusive), but they both will not be 00 at the same time, i.e., the total time will be positive, i.e., input will not be 00:00.

출력

Output should contain a single line in the form of HH:MM:SS, indicating the additional time the food will cook in the microwave. Note that you need to print two digits for each part. Also note that MM and SS must be in the range of 00 to 59.

제한

예제 입력 1

05:00

예제 출력 1

04:55:00

예제 입력 2

13:37

예제 출력 2

13:23:23

예제 입력 3

00:10

예제 출력 3

00:09:50

힌트

출처

University > University of Central Florida > 2020 Local Programming Contest (Final Round) 3번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /