s_id
stringlengths
10
10
p_id
stringlengths
6
6
u_id
stringlengths
10
10
date
stringlengths
10
10
language
stringclasses
1 value
original_language
stringclasses
11 values
filename_ext
stringclasses
1 value
status
stringclasses
1 value
cpu_time
stringlengths
1
5
memory
stringlengths
1
7
code_size
stringlengths
1
6
code
stringlengths
1
539k
s424739509
p03470
u431981421
1577483102
Python
Python (3.4.3)
py
Runtime Error
18
2940
89
a=int(input()) list = [] for i in a: list.append(int(input())) print(list(set(list)))
s817268987
p03470
u487594898
1577428071
Python
Python (3.4.3)
py
Runtime Error
17
2940
79
n=int(input()) int_list=[input() for i in range(n)] print(len(set(int_list())))
s899876800
p03470
u046961553
1577325709
Python
Python (3.4.3)
py
Runtime Error
17
2940
74
n = input() mochi = [input() for i in range(int(n))] print(len(set(mochi))
s283771212
p03470
u721425712
1576340961
Python
Python (3.4.3)
py
Runtime Error
17
3060
246
n = int(input()) d = [int(input()) for i in range(n)] num = [0]*100 for i in range(n): num[d[i]] += 1 ans = 0 for i in range(100): if num[i] > 0: # num[i] == 1 の方が直観的に理解しやすいかも ans += 1 print(ans)
s658769077
p03470
u071416928
1576175099
Python
Python (3.4.3)
py
Runtime Error
17
2940
84
a = [int(input()) for _ in range(n)] a.sort(reverse = True) print(len(list(set(a))))
s920825531
p03470
u639592190
1575955378
Python
Python (3.4.3)
py
Runtime Error
17
2940
67
N=int(input()) d=[int(input()) for _ in range(N)] print(len(set(d))
s615858668
p03470
u288786530
1575895761
Python
Python (3.4.3)
py
Runtime Error
17
3060
272
n, y = map(int,input().split()) a = -1 b = -1 c = -1 for i in range(n+1): for j in range(n+1): if 0 <= n - i - j <= 2000 and y == 10000*i + 5000*j + 1000*(n - i - j): a = i b = j c = n - i -j break print(a,b,c)
s080807907
p03470
u683134447
1575193740
Python
Python (3.4.3)
py
Runtime Error
19
2940
81
n = int(input()) dl = [] for _ in range(n): dl.append(d) print(len(set(dl)))
s366956347
p03470
u566619532
1574360801
Python
Python (3.4.3)
py
Runtime Error
18
3060
205
# -*- coding: utf-8 -*- a = int(input()) b = [] for i in range(a): b.append(input()) c = [0] * (100+1) for i in b: c[i] = i d = [] for g in c: if g != 0: d.append(g) print(len(d))
s963031257
p03470
u566619532
1574360643
Python
Python (3.4.3)
py
Runtime Error
18
3060
178
a = int(input()) b = [] for i in range(a): b.append(input()) c = [0] * (100) for i in b: c[i] = i d = [] for g in c: if g != 0: d.append(g) print(len(d))
s982975372
p03470
u566619532
1574360536
Python
Python (3.4.3)
py
Runtime Error
17
3060
188
a = int(input()) b = [] for i in range(a): b.append(input()) c = [0] * (100) for i in b: c[i] = i print(c) d = [] for g in c: if g != 0: d.append(g) print(len(d))
s308204415
p03470
u566619532
1573786546
Python
Python (3.4.3)
py
Runtime Error
20
3064
1225
# -*- coding: utf-8 -*- test = input() a, b, c = map(int, test.split()) # 変数a,b,cにそれぞれN、A、Bをint型にして入力する  x = [] for i in range(1,a+1): # list型の変数xに1からNまでの要素を入れる x.append(i) len_x = len(x) # リスト型の変数xの要素数を獲得 d = 0 # リストの各行の和を入れるための変数 f = [] # 各行の和がA以上B以下の要素を入れるための変数 x = map(str, x) # リストxの書く要素をstr型に変換 for i...
s768567706
p03470
u175590965
1573011424
Python
Python (3.4.3)
py
Runtime Error
17
2940
73
n = int(input()) d = [list(input())for i in range(n)] print(len(set(d)))
s647585239
p03470
u175590965
1573011341
Python
Python (3.4.3)
py
Runtime Error
17
2940
74
n = int(input()) d = [list(input())for i in ranghe(n)] print(len(set(d)))
s770106644
p03470
u208844959
1572927057
Python
Python (3.4.3)
py
Runtime Error
17
3064
233
N = int(input()) ld = [0] * N for i in range(N): d = int(input()) ld[i] = d bucket = [0] * N for j in range(N): bucket[ld[j] - 1] += 1 tower = 0 for k in range(N): if bucket[k] > 0: tower += 1 print(tower)
s906707813
p03470
u208844959
1572926904
Python
Python (3.4.3)
py
Runtime Error
17
3064
252
N = int(input()) ld = [0] * N for i in range(N): d = int(input()) ld[i] = d upper = N + 2 bucket = [0] * upper for j in range(N): bucket[ld[j]] += 1 tower = 0 for k in range(1, N+1): if bucket[k] > 0: tower += 1 print(tower)
s303351312
p03470
u208844959
1572926801
Python
Python (3.4.3)
py
Runtime Error
17
3064
240
N = int(input()) ld = [0] * N for i in range(N): d = int(input()) ld[i] = d bucket = [0] * (N + 5) for j in range(N): bucket[ld[j]] += 1 tower = 0 for k in range(1, N+1): if bucket[k] > 0: tower += 1 print(tower)
s929589391
p03470
u208844959
1572926591
Python
Python (3.4.3)
py
Runtime Error
17
3064
229
N = int(input()) ld = [0] * N for i in range(N): d = int(input()) ld[i] = d bucket = [0] * N for j in range(N): bucket[ld[j]] += 1 tower = 0 for k in range(N): if bucket[k] > 0: tower += 1 print(tower)
s323746347
p03470
u208844959
1572926375
Python
Python (3.4.3)
py
Runtime Error
18
3060
227
N = int(input()) ld = [] for i in range(N): d = int(input()) ld.append(d) bucket = [0] * N for i in range(N): bucket[ld[i]] += 1 tower = 0 for k in range(N): if bucket[k] > 0: tower += 1 print(tower)
s223561100
p03470
u828277092
1572753196
Python
Python (3.4.3)
py
Runtime Error
17
2940
81
n = int(input()) list_d = [int(input()) for i int range(n)] print(len(set(lst)))
s332906737
p03470
u828277092
1572753136
Python
Python (3.4.3)
py
Runtime Error
17
2940
81
n = int(input()) list_d = [int(input()) for i int range(n)] print(len(set(lst)))
s714254042
p03470
u828277092
1572753123
Python
Python (3.4.3)
py
Runtime Error
17
2940
81
N = int(input()) list_d = [int(input()) for i int range(n)] print(len(set(lst)))
s040229342
p03470
u819939299
1572465666
Python
Python (3.4.3)
py
Runtime Error
17
2940
63
n = int(input()) print(len(set([int(input) for _ in range(n)]))
s303832282
p03470
u819939299
1572465622
Python
Python (3.4.3)
py
Runtime Error
17
2940
61
n = int(input()) print(len(set(int(input) for _ in range(n)))
s467905795
p03470
u773265208
1570022685
Python
PyPy3 (2.4.0)
py
Runtime Error
165
38640
162
import sys k,s = map(int,input().split()) ans = 0 for x in range(k+1): for y in range(k+1): if s - (x + y) >= 0 and s - (x + y) <= k: ans += 1 print(ans)
s208073171
p03470
u991269553
1569425407
Python
Python (3.4.3)
py
Runtime Error
18
3060
205
N = int(input()) d = [int(input()) for i in range(N)] a = 0 b = 0 e = sorted(d) while b == 0: for l in range(N): if e[l] < e[l+1]: a += 1 else: b += 1 print(a)
s026824498
p03470
u991269553
1569423897
Python
Python (3.4.3)
py
Runtime Error
17
2940
168
N = int(input()) d = [int(input()) for i in range(N)] a = 0 b = 0 while b == 0: for l in range(N): if d[l]<d[l+1]: a += 1 else: b += 1 print(a)
s880058718
p03470
u343150957
1569296567
Python
Python (3.4.3)
py
Runtime Error
17
2940
100
n = int(input()) d = [] for i in range(n+1): d.append(int(input())) ans = len(set(d)) print(ans)
s542180820
p03470
u343150957
1569296529
Python
Python (3.4.3)
py
Runtime Error
18
2940
100
n = int(input()) d = [] for i in range(n+1): d.append(int(input())) ans = len(set(d)) print(ans)
s810813519
p03470
u343150957
1569296420
Python
Python (3.4.3)
py
Runtime Error
18
2940
89
n = int(input()) for i in range(n): d[i] = int(input()) ans = len(set(d)) print(ans)
s456200196
p03470
u343150957
1569296329
Python
Python (3.4.3)
py
Runtime Error
17
2940
91
n = int(input()) for i in range(n+1): d[i] = int(input()) ans = len(set(d)) print(ans)
s437166241
p03470
u168489836
1569279881
Python
Python (3.4.3)
py
Runtime Error
17
3064
335
n = int(input()) lst = [int(input()) for x in range(n)] if n==1: print(1) break else: split_info = [0] + [i for i in range(1, n) if lst[i-1]<=lst[i]] + [n-1] if len(split_info)==2: print(n) break result = [len(lst[split_info[i]:split_info[i+1]]) for i in range(len(split_info)-1)] pri...
s024025910
p03470
u982471399
1569252169
Python
Python (3.4.3)
py
Runtime Error
18
3064
373
N,Y=map(int,input().split()) #N=a+b+c #Y=10000*a+5000*b+1000*c ans=[] maxA=Y//10000 maxB=Y//5000 maxC=Y//1000 for a in range(maxA+1): for b in range(maxB+1): for c in range(maxC+1): if N==a+b+c: if Y==10000*a+5000*b+1000*c: ans.append(str(a)+" "+str(b)+" "+str(c)) if len(ans)!=0: print(a...
s603680529
p03470
u396391104
1569189623
Python
Python (3.4.3)
py
Runtime Error
17
2940
80
n = int(input()) d = [int(input()) for _ in range(n)] print(count(list(set(d))))
s532377109
p03470
u586212264
1568939224
Python
PyPy3 (2.4.0)
py
Runtime Error
172
38256
121
n=input() kagami=[] for i in range(n): d=input() if d not in kagami: kagami.append(d) print(len(kagami))
s107980373
p03470
u556589653
1568318591
Python
Python (3.4.3)
py
Runtime Error
17
3060
180
N = int(input()) ans = 1 d = [] for i in range(N): d.append(int(input())) sorted(d,reverse=True) for i in range(len(d)-1): if d[i] == d[i+1]: d.remove(d[i+1]) print(len(d))
s004881949
p03470
u850491413
1568174738
Python
PyPy3 (2.4.0)
py
Runtime Error
168
38256
197
import sys def input(): return sys.stdin.readline().strip() N = int(input()) ans = 0 d = defaultdict(int) for i in range(N): di = int(input()) if d[di] == 0: ans += 1 d[di] += 1 print(ans)
s735042680
p03470
u597455618
1568011032
Python
Python (3.4.3)
py
Runtime Error
17
2940
81
n = int(input()) d = [int(input()) for i in range(n)] p.sort() print(len(set(p)))
s146380919
p03470
u497049044
1567882291
Python
Python (3.4.3)
py
Runtime Error
17
3060
214
N = int(input()) d = [int(input()) for i in range(N)] print(list(set(d))) e = list(set(d)) print(len(e)) N = int(input()) d = [int(input()) for i in range(N)] # print(list(set(d))) e = list(set(d)) print(len(e))
s732317009
p03470
u003501233
1567544766
Python
Python (3.4.3)
py
Runtime Error
17
2940
67
n=int(input()) d=[int(input()) for i in range(n)] print(len(set(d))
s261702453
p03470
u977349332
1567443458
Python
Python (3.4.3)
py
Runtime Error
20
3060
86
N = int(input()) d = [] for i in range(N): d.add(int(input())) print(len(set(d)))
s872094254
p03470
u977349332
1567443406
Python
Python (3.4.3)
py
Runtime Error
18
2940
86
N = int(input()) d = [] for i in range(N): d.add(int(input())) print(set(len(d)))
s816287998
p03470
u977349332
1567443287
Python
Python (3.4.3)
py
Runtime Error
17
2940
81
N = int(input()) d = {} for i in range(N): d.add(int(input())) print(len(d))
s088160044
p03470
u977349332
1567443240
Python
Python (3.4.3)
py
Runtime Error
17
2940
81
N = int(input()) d = [] for i in range(N): d.add(int(input())) print(len(d))
s318765129
p03470
u556371693
1567336555
Python
Python (3.4.3)
py
Runtime Error
17
2940
70
N, *d = map(int, open(0).read().split()) c=list(set(*d)) print(len(c))
s641101566
p03470
u326609687
1567226765
Python
Python (3.4.3)
py
Runtime Error
17
2940
14031
mport subprocess import gzip, base64, os import stat gz = b'H4sIAGxEaV0C/+19fXxUxbn/2d28LG/ZRQMGBF1w1SCSZCFA4hubl4Vd2UAgAakvHDabDVnd7Ka7ZyEoViiJZV2jaevt5dp6y6/9tbX+fp/6clurVCEUBWttS7X1UvEFFXCXiIIi5Pq293lm5mzmnD0nBu3vfn5/eJTMPt95ZuaZZ555ZuacM2fucHkXGg0GQb6MwjUCUjUlTkI7GV7VlGUBrEoYBX8vFKYIBUDnc3xOwakIB1nWcmhmfCb4l4f5Gln...
s896370773
p03470
u867977118
1567201630
Python
Python (3.4.3)
py
Runtime Error
17
2940
134
N = int(input()) d = [int(input()) for _ in range(N)] cnt = [] for i in d : if i not in cnt : cnt.append(i) print(len(cnt))
s632286045
p03470
u835482198
1567038892
Python
Python (3.4.3)
py
Runtime Error
17
2940
143
n = int(input()) d = sorted([int(input()) for _ in range(n)]) cnt = 1 for a, b in zip(cnt[1:], cnt): if a > b: cnt += 1 print(cnt)
s696807867
p03470
u478296955
1566990954
Python
Python (3.4.3)
py
Runtime Error
17
2940
70
n = int(input()) S = set([int(input()) for in range(n)]) print(len(S))
s628617671
p03470
u478296955
1566990913
Python
Python (3.4.3)
py
Runtime Error
17
2940
65
n = input() S = set([int(input()) for in range(n)]) print(len(S))
s004950961
p03470
u478296955
1566990889
Python
Python (3.4.3)
py
Runtime Error
18
2940
63
n = input() S = set(int(input()) for in range(n)) print(len(S))
s408951769
p03470
u260036763
1566070946
Python
Python (3.4.3)
py
Runtime Error
18
2940
67
n = input() d = [int(input()) for i in range(n)] print(len(set(d)))
s643629532
p03470
u699699071
1565915650
Python
Python (3.4.3)
py
Runtime Error
18
3060
208
n = int(input()) loop = 0 array = [] moti = [] while loop < n : array.append(int(input())) loop += 1 for i in array: if moti.count( array[i] )==0: moti.append(array[i]) print(len(moti))
s856375201
p03470
u703442202
1565897100
Python
Python (3.4.3)
py
Runtime Error
20
2940
105
n = int(input()) n_list =[] for i in range(n+1): n_list.append(int(input())) print(len(set(n_list)))
s369771144
p03470
u703442202
1565896961
Python
Python (3.4.3)
py
Runtime Error
17
2940
104
n = int(input()) n_list =[] for i in range(n+1): n_list.append(int(input())) print(set(len(n_list)))
s204168656
p03470
u181195295
1565896708
Python
Python (3.4.3)
py
Runtime Error
17
2940
154
N= int(input()) num = list() for i in range(0,N-1): d = int(input()) num[d] = 1 res = 0 for i in range (0,101): res += num[i] print(res)
s100768103
p03470
u181195295
1565896577
Python
Python (3.4.3)
py
Runtime Error
18
2940
154
N= int(input()) num = list() for i in range(0,N-1): d = int(input()) num[d] = 1 res = 0 for i in range (0,N-1): res += num[i] print(res)
s413298119
p03470
u508141157
1565807680
Python
Python (3.4.3)
py
Runtime Error
17
2940
55
print(len(set([int(input()) for _ in range(input())])))
s097603467
p03470
u508141157
1565807636
Python
Python (3.4.3)
py
Runtime Error
17
2940
57
print(len(set([int(input()) for _ in range(input())])))
s824754549
p03470
u508141157
1565807542
Python
Python (3.4.3)
py
Runtime Error
19
2940
57
print(len(set([int(input()) for _ in range(input())])))
s803397691
p03470
u508141157
1565807513
Python
Python (3.4.3)
py
Runtime Error
17
2940
50
len(set([int(input()) for _ in range(input())]))
s050384581
p03470
u798316285
1565649225
Python
Python (3.4.3)
py
Runtime Error
18
2940
68
n=input() l=[int(input()) for i in range(n)] s=set(l) print(len(s))
s932816705
p03470
u798316285
1565649205
Python
Python (3.4.3)
py
Runtime Error
17
2940
65
n=input l=[int(input()) for i in range(n)] s=set(l) print(len(s))
s985679821
p03470
u798316285
1565649001
Python
Python (3.4.3)
py
Runtime Error
17
2940
65
n=input l=[int(input()) for i in range(n)] s=set(l) print(len(s))
s451994664
p03470
u408620326
1565648373
Python
Python (3.4.3)
py
Runtime Error
17
2940
93
N=int(input()) l=[0 for _ in range(N)] for _ in range(N): l[int(input())-1]=1 print(sum(l))
s109094729
p03470
u408620326
1565648317
Python
Python (3.4.3)
py
Runtime Error
18
2940
91
N=int(input()) l=[0 for _ in range(N)] for _ in range(N): l[int(input())]=1 print(sum(l))
s243146981
p03470
u408620326
1565648312
Python
PyPy3 (2.4.0)
py
Runtime Error
169
38384
91
N=int(input()) l=[0 for _ in range(N)] for _ in range(N): l[int(input())]=1 print(sum(l))
s724567959
p03470
u248670337
1565566480
Python
Python (3.4.3)
py
Runtime Error
18
2940
59
print(len(set([int(input()) for i in range(int(input()))]))
s384000536
p03470
u155687575
1565536152
Python
Python (3.4.3)
py
Runtime Error
18
2940
203
N = int(input()) mochis = [] for _ in range(N): mochis.append(int(input())) mochis = sorted(mochis, reverse=True) dan = 0 for i in range(N): dan += 1 if mochis[i] == mochis[i+1]: break print(dan)
s362777810
p03470
u155687575
1565536103
Python
Python (3.4.3)
py
Runtime Error
17
2940
202
N = int(input()) mochis = [] for _ in range(N): mochis.append(int(input()) mochis = sorted(mochis, reverse=True) dan = 0 for i in range(N): dan += 1 if mochis[i] == mochis[i+1]: break print(dan)
s770285961
p03470
u413165887
1565469876
Python
Python (3.4.3)
py
Runtime Error
20
3064
378
n = int(input()) d = [int(input()) for i in range(n)] d.sort(reverse=True) result = [] for i in range(n-1): count = 1 if all(d[x] == d[i] for x in range(i,n)): count = 1 else: if d[i] == d[i+1]: count += 1 for j in range(i, n-1): if d[j] > d[j+1]: ...
s166241135
p03470
u413165887
1565468893
Python
Python (3.4.3)
py
Runtime Error
19
3064
382
n = int(input()) d = [int(input()) for i in range(n)] d.sort(reverse=True) result = [] for i in range(n-1): count = 1 if all(d[x] == d[i] for x in range(i,n)): count = 1 else: if d[i] == d[i+1]: count += 1 for j in range(n-i-1): if d[j+i] > d[j+i+1]: ...
s706843418
p03470
u913812470
1565236830
Python
Python (3.4.3)
py
Runtime Error
17
2940
182
n = int(input()) d_list = list(map(int, input().split())) d_list.sort(reverse = True) count = 1 for i in range(1, n): if d_list[i] < d_list[i-1]: count += 1 print(count)
s615989261
p03470
u158778550
1564951181
Python
Python (3.4.3)
py
Runtime Error
17
2940
90
N = input() dL = [0]*N for n in range(N): dL[n] = int(input()) print(len(list(set(dL))))
s123143346
p03470
u158778550
1564948915
Python
Python (3.4.3)
py
Runtime Error
17
3060
223
N = int(input()) dL = [] for n in ranege(N+1): dL.append(int(input())) dL.sort() counter = 0 for n in range(N+1): if dL[n] == dL[n+1]: pass else: counter += 1 if counter == 0: counter = 1 print(counter)
s342184380
p03470
u571445182
1564894987
Python
Python (3.4.3)
py
Runtime Error
18
2940
218
nN = int(input()) nList = [] nTmp = int(input()) nList.append(nTmp) nAns = 1 if (nN > 1): nTmp = int(input()) if nTmp in nList: continue else: nList.append(nTmp) nAns += 1 print(nAns)
s006491362
p03470
u106103668
1564878089
Python
Python (3.4.3)
py
Runtime Error
18
2940
210
N, Y = map(int, input().split()) for i in range(N): for j in range(N-i): if 10000*i + 5000*j + 1000*(N-i-j) == Y: print('{} {} {}'.format(i,j,N-i-j)) exit() print("-1 -1 -1")
s357758279
p03470
u759412327
1564502322
Python
Python (3.4.3)
py
Runtime Error
17
2940
70
N = int(input()) d = set(int(input()) for i in range(N)) print(len(S))
s017703375
p03470
u626337957
1564240169
Python
Python (3.4.3)
py
Runtime Error
17
2940
92
N = int(input()) rice_cakes = [int(input()) for _ in range(N)] print(len(set(rice_cakes))
s779551164
p03470
u369142620
1563904842
Python
Python (3.4.3)
py
Runtime Error
18
3060
218
N = int(input()) lst = [] for i in range(N): lst.append(int(input())) lst.sort() for j in range(len(lst)-1): if j > 0: if lst[j-1] == lst[j]: lst.remove(lst[j]) print(len(lst))
s522813265
p03470
u114366889
1563764855
Python
Python (3.4.3)
py
Runtime Error
17
2940
142
N= int(input()) d = list() for i in range(N): d.append(int(input()) d_set = set(d) d_list = list(d_set) d_list.sort() print(len(d_list))
s066397851
p03470
u825440127
1563685162
Python
Python (3.4.3)
py
Runtime Error
17
2940
90
n = int(input()) nums = [int(input()) for _ in range(int(input()))] print(len(set(nums)))
s432093171
p03470
u959005202
1562441813
Python
PyPy3 (2.4.0)
py
Runtime Error
169
38640
258
# バケット法を用いる def kagamiMochi(): N = int(input()) d = [] for _ in range(0, N): d.append(int(input())) num = [0] * 100 for i in range(0, N): num[d[i]] += 1 count = 0 for j in num: if j: count += 1 print(count) kagamiMochi()
s329132380
p03470
u862296914
1562161133
Python
Python (3.4.3)
py
Runtime Error
17
2940
72
from sys in stdin N = input() print(len(set(stdin.read().splitlines())))
s323670443
p03470
u295652340
1561649181
Python
Python (3.4.3)
py
Runtime Error
17
2940
69
n = int(input()) print len(set(map(int,[input() for i in range(n)])))
s678992972
p03470
u456033454
1560620618
Python
Python (3.4.3)
py
Runtime Error
17
2940
102
n = int(input()) l = [] for _ in range(n): l.append(int(input())) list(set(l.sorted())) print(len(l))
s973324597
p03470
u591779169
1559832831
Python
Python (3.4.3)
py
Runtime Error
17
3064
356
a, b = map(int, input().split()) s = input() ans = 0 for i in range(len(s)): if s[i] == "-": if i == a and len(s)-i-1 == b: ans = 1 for j in range(b): if s[-j] == "-": ans = 0 break break if ans == 0: print("No")...
s952899287
p03470
u592128666
1559352134
Python
Python (3.4.3)
py
Runtime Error
18
3060
201
n = int(input()) list1 = [] list2 = [] for i in range(0,n): list1.append(int(input())) for i in range(0,len(list1)): if not(list1[1] in list2): list2.append(list1[i]) print(len(list2))
s981967427
p03470
u592128666
1559352045
Python
Python (3.4.3)
py
Runtime Error
17
3060
205
n = int(input()) list1 = [] list2 = [] for i in range(0,n): list1.append(int(input())) for i in range(0,len(list1)): if not(list1[1] in list2): list2.append(list1.pop(i)) print(len(list2))
s005381706
p03470
u178192749
1559270498
Python
Python (3.4.3)
py
Runtime Error
17
2940
75
n = int(input) l = [] for i in range(n): l.append(i) print(len(set(l)))
s397126109
p03470
u651946953
1558981407
Python
Python (3.4.3)
py
Runtime Error
18
2940
183
n=int(input()) a = [] for _ in range(n): a.append(int(input())) for x in range(n-1): for y in range(x+1,n): if a[y] == a[x]: a.remove(a[x]) print(len(a))
s901534183
p03470
u655427167
1558414965
Python
Python (3.4.3)
py
Runtime Error
19
3060
157
if __name__ == '__main__': N = int(input()) l = [list(map(int, input())) for i in range(N)] # l = [10, 8, 8, 6] s = set(l) print(len(s))
s098967904
p03470
u033719192
1558341805
Python
Python (3.4.3)
py
Runtime Error
17
3060
230
N, Y = map(int, input().split()) for a in range(N): for b in range(N - a): c = N - a - b if 0 <= c <= 2000 & 10000 * a + 5000 * b + 1000 * c == Y: print(a,b,c) exit() print(-1, -1, -1)
s273293148
p03470
u450904670
1558240239
Python
Python (3.4.3)
py
Runtime Error
17
2940
102
n = int(input()) num = {} for i in range(n): a = input() num[a]=True print(num.keys().count())
s087639096
p03470
u450904670
1558240140
Python
Python (3.4.3)
py
Runtime Error
17
2940
99
n = int(input()) num = {} for i in range(n): a = input() num[a]=True print(num.keys().count())
s178913058
p03470
u298297089
1557949718
Python
Python (3.4.3)
py
Runtime Error
19
3060
195
N = int(input()) X = [int(input()) for i in range(N)] cnt = 0 lst = [] X.sort() for i in range(N-1): if X[i] < X[i+1] : cnt += 1 else: lst.append(cnt) cnt = 0 print(min(lst))
s504286141
p03470
u870198083
1557752884
Python
Python (3.4.3)
py
Runtime Error
17
2940
86
n=int(input()) li=[] for i in range(n): li[i]=int(input()) print(len(list(set(li))))
s194569310
p03470
u507116804
1557451126
Python
Python (3.4.3)
py
Runtime Error
17
2940
110
n=int(input()) D=[] for i in range(n): d=int(input()) D.append(d) print(collections.Counter(D))
s678720899
p03470
u096983897
1557005810
Python
Python (3.4.3)
py
Runtime Error
18
3060
265
def main(): array = [] size = input() for i in range(size): array.append(int(input())) array.sort(reverse=True) result = 1 for i in range(len(array)-1): if array[i] != array[i+1]: result+=1 print(result) main()
s637566495
p03470
u194894739
1556673820
Python
Python (3.4.3)
py
Runtime Error
17
2940
183
n = int(input()) D = list(map(int,input().split())) daburi = 0 for i in range(n): for j in range(n): if i != j and D[i] == D[j]: daburi += 1 print(n - daburi)