Submit | All submissions | Best solutions | Back to list |
RG102 - NEW YEAR GRADO 10 |
Lukas spends the day of New Year's Eve counting the minutes that are missing so that they give the grapes. Can help him?
Input
The entry consists of a series of hours, each in a line. Each hour is formed by the hours and minutes separated by two dots ( : ) and always using two digits. A representation is used in 24 hours format (that is, from 00:00 to 23:59).
Entry ends when the time is midnight (00:00), which should not be processed.
Output
For each test case a line will be shown with the number of minutes remaining by midnight.
Example
Input: 23:45
21:30
00:01
00:00 Output: 15
150
1439
Added by: | MaratónAFDM |
Date: | 2018-07-31 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | C NCSHARP CSHARP C++ 4.3.2 JAVA JULIA PYTHON PYPY3 PYTHON3 |