National Girls' Programming Contest 2019 (Replay)

Schedule

The contest will start on 2019-11-25T13:00:00Z and will run for 5 hours.

Click here to learn more about this contest.

Can we submit after contest ends? If yes, how?

In the problem C (Mr. Xifu and His New School).

Input:
5
2
23:00 05:00
04:00 10:00

Output:
Case #1: Mr.Xifu needs 2 classroom(s)

Here the 1st class starts at 23:00 (11:00 pm) and ends on the next day (not the current day) at 5:00 (5:00 pm). And the 2nd class starts at 4:00 (4:00 am) and ends at 10:00 (10:00 am). So, why need 2 classrooms in a day?