Submission #2714369


Source Code Expand

N, C = map(int, input().split())
tv = [list(map(int, input().split())) for _ in range(N)]

max_t = max(tv, key=lambda x: x[1])[1]
channels = [[0 for _ in range(max_t)] for _ in range(C)]

for s, t, c in tv:
    channels[c - 1][s - 1:t] = [1] * (t - s + 1)

ans = 0
for T in list(zip(*channels)):
    ans = max(ans, sum(T))
print(ans)

Submission Info

Submission Time
Task D - Recording
User xkumiyu
Language Python (3.4.3)
Score 400
Code Size 347 Byte
Status AC
Exec Time 749 ms
Memory 80492 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 400 / 400
Status
AC × 3
AC × 22
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
All 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, 10.txt, 11.txt, 12.txt, 13.txt, 14.txt, 15.txt, 16.txt, 17.txt, 18.txt, 19.txt, sample_01.txt, sample_02.txt, sample_03.txt
Case Name Status Exec Time Memory
01.txt AC 710 ms 80492 KB
02.txt AC 643 ms 72800 KB
03.txt AC 749 ms 80388 KB
04.txt AC 717 ms 80412 KB
05.txt AC 439 ms 34548 KB
06.txt AC 502 ms 68212 KB
07.txt AC 440 ms 64636 KB
08.txt AC 305 ms 56124 KB
09.txt AC 698 ms 80404 KB
10.txt AC 692 ms 80468 KB
11.txt AC 684 ms 80428 KB
12.txt AC 101 ms 16376 KB
13.txt AC 97 ms 18968 KB
14.txt AC 17 ms 3064 KB
15.txt AC 17 ms 3064 KB
16.txt AC 680 ms 80432 KB
17.txt AC 686 ms 80416 KB
18.txt AC 696 ms 80384 KB
19.txt AC 700 ms 80468 KB
sample_01.txt AC 17 ms 3060 KB
sample_02.txt AC 17 ms 3064 KB
sample_03.txt AC 17 ms 3064 KB