Submission #3422053
Source Code Expand
import numpy as np
N, C_num = map(int, input().split(" "))
S, T, C = [], [], []
for _ in range(N):
s, t, c = map(int, input().split(" "))
S.append(s * 2 - 1)
T.append(t * 2)
C.append(c - 1)
table = np.zeros((C_num, 10 ** 5 * 3), "int32")
for s, t, c in zip(S, T, C):
table[c, s:t] = 1
print(table.sum(0).max())
Submission Info
| Submission Time | |
|---|---|
| Task | D - Recording |
| User | chahan69 |
| Language | Python (3.4.3) |
| Score | 400 |
| Code Size | 351 Byte |
| Status | AC |
| Exec Time | 923 ms |
| Memory | 65956 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 400 / 400 | ||||
| Status |
|
|
| 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 | 923 ms | 65956 KiB |
| 02.txt | AC | 772 ms | 51556 KiB |
| 03.txt | AC | 777 ms | 59044 KiB |
| 04.txt | AC | 771 ms | 58336 KiB |
| 05.txt | AC | 729 ms | 23936 KiB |
| 06.txt | AC | 465 ms | 54208 KiB |
| 07.txt | AC | 377 ms | 52056 KiB |
| 08.txt | AC | 172 ms | 47704 KiB |
| 09.txt | AC | 780 ms | 57556 KiB |
| 10.txt | AC | 752 ms | 58412 KiB |
| 11.txt | AC | 763 ms | 57456 KiB |
| 12.txt | AC | 152 ms | 17112 KiB |
| 13.txt | AC | 171 ms | 49624 KiB |
| 14.txt | AC | 169 ms | 43480 KiB |
| 15.txt | AC | 165 ms | 33240 KiB |
| 16.txt | AC | 771 ms | 57424 KiB |
| 17.txt | AC | 753 ms | 57516 KiB |
| 18.txt | AC | 783 ms | 57432 KiB |
| 19.txt | AC | 767 ms | 57424 KiB |
| sample_01.txt | AC | 150 ms | 14808 KiB |
| sample_02.txt | AC | 151 ms | 16856 KiB |
| sample_03.txt | AC | 150 ms | 16852 KiB |