Submission #3421369
Source Code Expand
N = int(input()) l = list(map(int, input().split())) l.sort() ans = 0 j = 0 for i in unique_l: cnt = 0 while l[j] == i and j < len(l): cnt += 1 j += 1 j += 1 if cnt == i: pass elif cnt > i: ans += cnt - 1 elif cnt < i: ans += cnt print(ans)
Submission Info
Submission Time | |
---|---|
Task | C - Good Sequence |
User | satoshi_f |
Language | Python (3.4.3) |
Score | 0 |
Code Size | 327 Byte |
Status | RE |
Exec Time | 75 ms |
Memory | 14244 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 300 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 0_00.txt, 0_01.txt, 0_02.txt, 0_03.txt, 0_04.txt |
All | 0_00.txt, 0_01.txt, 0_02.txt, 0_03.txt, 0_04.txt, 1_00.txt, 1_01.txt, 1_02.txt, 1_03.txt, 1_04.txt, 1_05.txt, 1_06.txt, 1_07.txt, 1_08.txt, 1_09.txt, 1_10.txt, 1_11.txt, 1_12.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
0_00.txt | RE | 17 ms | 3060 KB |
0_01.txt | RE | 17 ms | 2940 KB |
0_02.txt | RE | 17 ms | 2940 KB |
0_03.txt | RE | 17 ms | 2940 KB |
0_04.txt | RE | 17 ms | 3060 KB |
1_00.txt | RE | 17 ms | 3060 KB |
1_01.txt | RE | 17 ms | 2940 KB |
1_02.txt | RE | 34 ms | 4660 KB |
1_03.txt | RE | 43 ms | 13964 KB |
1_04.txt | RE | 42 ms | 14060 KB |
1_05.txt | RE | 43 ms | 13936 KB |
1_06.txt | RE | 44 ms | 14028 KB |
1_07.txt | RE | 50 ms | 14024 KB |
1_08.txt | RE | 58 ms | 13920 KB |
1_09.txt | RE | 66 ms | 14244 KB |
1_10.txt | RE | 68 ms | 14236 KB |
1_11.txt | RE | 73 ms | 13920 KB |
1_12.txt | RE | 75 ms | 13564 KB |