MIDO - KOSARK
Slavko has started to follow the NBA league. The game duration is exactly 48 minutes. When a game
ends, the statistics are shown. Slavko has written down whenever a team scored. He is curious about
how long each team was in the lead.
The first line of input contains one integer N (1 ≤ N ≤ 100). The following N lines describe events
when a team scored.
Each description consists of a team that scored, which is either 1 or 2, and a timestamp in format
MM:SS (minutes:seconds), the time when a team scored. Minutes and seconds are zero padded and
from ranges [00, 47] and [00, 59] (inclusive). The given timestamps are unique.
The first line of output must contain the duration that the first team was in the lead.
The second line of output must contain the duration that the second team was in the lead.
All durations should be in MM:SS format, with leading zeros.
mazaa aa gya AC at 1 go !!!
judge 12 driving me crazy! =.= assistance needed!...
nice! nice! nice!
AC thanks to Robert Milijaš comment ;-)
Still WA with the following Test Cases:
enjoyed solving this!!!
I recommend changing the sport to soccer. The points per scoring are ASSUMED TO BE ALWAYS THE SAME (i.e. not basketball).
Watch out! Make sure that you print ALL THE ZEROES!
some problem in judge 12