Spavanac
의견: 0
Every school morning Mirko is woken up by the sound of his alarm clock. Since he is a bit forgetful, quite often he leaves the alarm on on Saturday morning too. That's not too bad though, since he feels good when he realizes he doesn't have to get up from his warm and cozy bed.
He likes that so much that he would like to experience that on other days of the week too! His friend Slavko offered this simple solution: set his alarm clock \(45\) minutes early, and he can enjoy the comfort of his bed, fully awake, for \(45\) minutes each day.
Mirko decided to heed his advice, however his alarm clock uses \(24\)-hour notation and he has issues with adjusting the time. Help Mirko and write a program that will take one time stamp, in \(24\)-hour notation, and print out a new time stamp, \(45\) minutes earlier, also in \(24\)-hour notation.
Note: if you are unfamiliar with \(24\)-hour time notation yourself, you might be interested to know it starts with \(0{:}00\) (midnight) and ends with \(23{:}59\) (one minute before midnight).
The first and only line of input will contain exactly two integers \(H\) and \(M\) (\(0 \le H \le 23\), \(0 \le M \le 59\)) separated by a single space, the input time in \(24\)-hour notation. \(H\) denotes hours and \(M\) minutes.
The first and only line of output should contain exactly two integers, the time \(45\) minutes before input time.
| 서브태스크 | 점수 | 설명 |
|---|---|---|
Test 1 | 10점 | None |
Test 2 | 10점 | None |
Test 3 | 10점 | None |
Test 4 | 10점 | None |
Test 5 | 10점 | None |
Test 6 | 10점 | None |
Test 7 | 10점 | None |
Test 8 | 10점 | None |
Test 9 | 10점 | None |
Test 10 | 10점 | None |
10 109 250 3023 4523 4022 55평가 및 의견
Spavanac
Log in to rate problems.
아직 의견이 없습니다. 자격이 된다면 위 양식에서 가장 먼저 평가해 보세요.
풀이 제출
Spavanac