Košarka
의견: 0
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 \le N \le 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 the 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.
| 서브태스크 | 점수 | 설명 |
|---|---|---|
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 |
1
1 20:0028:00
00:003
1 01:10
2 21:10
2 31:3020:00
16:305
1 01:10
1 02:20
2 45:30
2 46:40
2 47:5045:30
00:10평가 및 의견
Košarka
Log in to rate problems.
아직 의견이 없습니다. 자격이 된다면 위 양식에서 가장 먼저 평가해 보세요.
풀이 제출
Košarka