Submission #3229940
Source Code Expand
#include <iostream> #include <cstdio> #include <vector> #include <algorithm> #include <limits.h> #include <queue> using namespace std; typedef long long ll; typedef unsigned long long ull; #define REP(i, n) for(int i=0; i<n; i++) #define TLIM 2*100100 bool hist[31][TLIM]; int main(){ int N, C; cin >> N >> C; int s,t,c; REP(i,N){ cin >> s >> t >> c; s = s*2 - 1; t *= 2; for(;s < t; s++) hist[c][s] = true; } int ans = 0; REP(t,2*TLIM){ int num = 0; REP(ch, C+1){ if(hist[ch][t]) num++; } ans = max(ans, num); } cout << ans << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | D - Recording |
User | kurakura |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 716 Byte |
Status | RE |
Exec Time | 207 ms |
Memory | 6144 KB |
Judge Result
Set Name | Sample | All | ||||||
---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 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 | RE | 206 ms | 6144 KB |
02.txt | AC | 108 ms | 5120 KB |
03.txt | RE | 205 ms | 6144 KB |
04.txt | RE | 202 ms | 6144 KB |
05.txt | AC | 90 ms | 384 KB |
06.txt | RE | 151 ms | 6144 KB |
07.txt | RE | 139 ms | 6144 KB |
08.txt | RE | 109 ms | 3456 KB |
09.txt | RE | 204 ms | 6144 KB |
10.txt | RE | 198 ms | 6144 KB |
11.txt | RE | 196 ms | 6144 KB |
12.txt | AC | 3 ms | 384 KB |
13.txt | RE | 106 ms | 2432 KB |
14.txt | RE | 109 ms | 2304 KB |
15.txt | AC | 12 ms | 2304 KB |
16.txt | RE | 207 ms | 6144 KB |
17.txt | RE | 205 ms | 6144 KB |
18.txt | RE | 199 ms | 5504 KB |
19.txt | RE | 198 ms | 5120 KB |
sample_01.txt | AC | 2 ms | 256 KB |
sample_02.txt | AC | 3 ms | 256 KB |
sample_03.txt | AC | 3 ms | 256 KB |