Submission #1189692
Source Code Expand
n=int(input()) a=[int(i) for i in input().split()] a.sort() b=[a[0]] def f(i): if i==n: print(len(b)) return 0 if a[i]!=b[-1]: b.append(a[i]) f(i+1) else: f(i+2) f(1)
Submission Info
Submission Time | |
---|---|
Task | D - Card Eater |
User | tacloth |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 197 Byte |
Status | CE |
Compile Error
./Main.cpp:1:1: error: ‘n’ does not name a type n=int(input()) ^