100-days-of-rust/Week-13/Day-89_Minutes_Before_The_New_Year
2023-03-23 21:48:17 -04:00
..
README.md Add files via upload 2023-03-23 21:48:17 -04:00

Minutes Before the New Year

New Year is coming and you are excited to know how many minutes remain before the New Year. You know that currently the clock shows hours and 𝑚 minutes, where 0≤<24 and 0≤𝑚𝑚<60.

We use 24-hour time format!

Your task is to find the number of minutes before the New Year. You know that New Year comes when the clock shows 0 hours and 0 minutes.

Input

23 55
23 0
0 1
4 20
23 59

Output

5
60
1439
1180
1