Submission #2415216
Source Code Expand
import collections as c N = int(input()) a = [int(i) for i in input().split()] d = c.Counter() for i in a: d[i] += 1 ans = 0 for k, v in d.items(): if v >= k: ans += v - k else: ans += v print (ans)
Submission Info
Submission Time | |
---|---|
Task | C - Good Sequence |
User | gamenerdDAI |
Language | Python (3.4.3) |
Score | 300 |
Code Size | 246 Byte |
Status | AC |
Exec Time | 128 ms |
Memory | 18676 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 300 / 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 | AC | 20 ms | 3316 KB |
0_01.txt | AC | 20 ms | 3316 KB |
0_02.txt | AC | 20 ms | 3316 KB |
0_03.txt | AC | 20 ms | 3316 KB |
0_04.txt | AC | 20 ms | 3316 KB |
1_00.txt | AC | 20 ms | 3316 KB |
1_01.txt | AC | 20 ms | 3316 KB |
1_02.txt | AC | 74 ms | 5276 KB |
1_03.txt | AC | 86 ms | 14216 KB |
1_04.txt | AC | 88 ms | 13548 KB |
1_05.txt | AC | 88 ms | 14184 KB |
1_06.txt | AC | 90 ms | 14404 KB |
1_07.txt | AC | 90 ms | 14780 KB |
1_08.txt | AC | 96 ms | 14176 KB |
1_09.txt | AC | 104 ms | 13828 KB |
1_10.txt | AC | 112 ms | 13848 KB |
1_11.txt | AC | 120 ms | 14108 KB |
1_12.txt | AC | 128 ms | 18676 KB |