Submission #1189747
Source Code Expand
n=int(input()) a=[int(i) for i in input().split()] a.sort() b=[a[0]] k=1 c=0 for i in range(1,n): if i==k: if a[i]!=b[-1]: b.append(a[i]) k=i+1 else: k=i+2 if i==n-1: c=1 print(len(b)-c)
Submission Info
Submission Time | |
---|---|
Task | D - Card Eater |
User | tacloth |
Language | Python (3.4.3) |
Score | 0 |
Code Size | 223 Byte |
Status | WA |
Exec Time | 98 ms |
Memory | 13964 KB |
Judge Result
Set Name | Sample | All | ||||||
---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 400 | ||||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 00_example_01.txt, 00_example_02.txt |
All | 00_example_01.txt, 00_example_02.txt, 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 |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_example_01.txt | AC | 17 ms | 3064 KB |
00_example_02.txt | AC | 17 ms | 3064 KB |
01.txt | AC | 17 ms | 3060 KB |
02.txt | AC | 21 ms | 3700 KB |
03.txt | AC | 17 ms | 3064 KB |
04.txt | AC | 17 ms | 3060 KB |
05.txt | AC | 17 ms | 3060 KB |
06.txt | AC | 85 ms | 13876 KB |
07.txt | AC | 84 ms | 13852 KB |
08.txt | WA | 98 ms | 13880 KB |
09.txt | AC | 83 ms | 13640 KB |
10.txt | AC | 79 ms | 13964 KB |
11.txt | AC | 97 ms | 13812 KB |
12.txt | AC | 83 ms | 13208 KB |
13.txt | AC | 93 ms | 13812 KB |
14.txt | AC | 87 ms | 13812 KB |
15.txt | AC | 63 ms | 13964 KB |