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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s153479083 | p03469 | u861966572 | 1515722011 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 30 | print(input[:3]+'8'+input[6:]) |
s832204147 | p03469 | u861966572 | 1515708718 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 36 | S=input()
S=s[:3]+"8"+s[:6]
print(S) |
s013171962 | p03469 | u861966572 | 1515708649 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 30 | S=input()
print(s[:3]+8+s[:6]) |
s453320639 | p03469 | u861966572 | 1515708577 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 47 | S=input()
new=S.split('2017')
print('2018'+new) |
s452287059 | p03469 | u861966572 | 1515708431 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 20 | new=S.split('2017')
|
s800340148 | p03469 | u861966572 | 1515708237 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 37 | new=S.split('2017')
print('2018'+new) |
s846043363 | p03469 | u854524434 | 1515702378 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 470 | import sys
import math
s_ls = sys.stdin.read().split("\n")[:-1]
a = []
b = []
hp = int(s_ls[0].split()[1])
max_slash = 0
for element in s_ls[1:]:
slash = int(element.split()[0])
if slash > max_slash:
max_slash = slash
b.append(int(element.split()[1]))
bp = sorted([x for x in b if x > max_slash])[::-... |
s969848195 | p03469 | u854524434 | 1515701502 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 672 | import sys
import math
s_ls = sys.stdin.read().split("\n")[:-1]
if "" in s_ls:
s_ls.remove("")
# print(s_ls)
a = []
b = []
hp = int(s_ls[0].split()[1])
max_slash = 0
for element in s_ls[1:]:
slash = int(element.split()[0])
if slash > max_slash:
max_slash = slash
# a.append(int(element.split()[0]... |
s361073515 | p03469 | u879082556 | 1515641592 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 81 | N=int(input())
d=[input() for i in range(N)]
d_uni=list(set(d))
print(len(d_uni)) |
s127968133 | p03469 | u848877025 | 1515624931 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 110 | # -*- coding: utf-8 -*-
s = row_input()
b = s.split('/')
b[0].replace('7','8')
# 出力
print('/'.join(b)) |
s410760362 | p03469 | u830842621 | 1515582835 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 35 | a = input()
a[:4] = '2018'
print(a) |
s507441126 | p03469 | u808427016 | 1515513638 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 491 | import sys
N, Y = [int(x) for x in sys.stdin.readline().strip().split()]
a = Y // 10000
b = (Y - a * 10000) // 5000
c = (Y - a * 10000 - b * 5000) // 1000
t = a + b + c
if N >= t + 9:
l = (N - t - 9) // 9
a -= l
c += l * 10
t = a + b + c
if N >= t + 4:
l = (N - t - 4) // 4
b -= l
c += l ... |
s213886545 | p03469 | u868418093 | 1515468850 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 323 | setting = input().rstrip().split(" ")
N = int(setting[0])
Y = int(setting[1])
otoshidama = [-1,-1,-1]
for x in range(N):
for y in range(N):
if 10000*x + 5000*y + 1000*(N-x-y) == Y :
otoshidama = [x,y,N-x-y]
else:
pass
print(otoshidama[0]," ",otoshidama[1]," ",otoshidama[2])... |
s536782696 | p03469 | u868418093 | 1515468415 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 300 | setting = input().rstrip().split(" ")
N = int(setting[0])
Y = int(setting[1])
for x in range(N):
for y in range(N):
if 10000*x + 5000*y + 1000*(N-x-y) == Y :
otoshidama = [x,y,N-x-y]
else:
pass
print(otoshidama[0]," ",otoshidama[1]," ",otoshidama[2]) |
s001010506 | p03469 | u868418093 | 1515458652 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 51 | S = raw_input()
S.replace("2017","2018")
print(S)
|
s721677001 | p03469 | u868418093 | 1515458464 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 55 | S = raw.input()
S = S.replace("2017","2018")
print(S)
|
s898349552 | p03469 | u868418093 | 1515458411 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 50 | S = raw.input()
S.replace("2017","2018")
print(S) |
s550727071 | p03469 | u075012704 | 1515454608 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 325 | N, Y = map(int, input().split())
# x:10000円, y;5000円, z:1000円
for x in range(N+1):
for y in range(N-x+1):# 5000円の枚数をN-(10000円の枚数)までに制限
for z in range(N-x-y-1):
if 10000*x + 5000*y + 1000*z == Y:
print(x, y, z)
exit(0)
print(-1, -1, -1) |
s808558677 | p03469 | u858136677 | 1515454134 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 336 | n,h = map(int,input().split())
a = []
b = []
for i in range(n):
c,d = map(int,input().split())
a.append(c)
b.append(d)
total = 0
b.sort()
b.reverse()
counter = 0
am = max(a)
for i in b:
if i >= am:
total += i
counter += 1
else:
break
if (h-total)%am == 0:
print(counter+(h-total)//am)
else:
print(counter+... |
s087307426 | p03469 | u881621300 | 1515440305 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 32 | s = input()
s[3] = '8'
print(s)
|
s005355912 | p03469 | u926678805 | 1515386647 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 50 | print(''.join((lambda s:s[3]='8')(list(input())))) |
s288891063 | p03469 | u255280439 | 1515384288 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 460 | import math
def main():
N, H = map(int, input().split())
cuts = []
throws = []
for i in range(N):
tmp = [int(j) for j in input().split()]
cuts.append(tmp[0])
throws.append(tmp[1])
max_cut = max(cuts)
t1 = 0
throws.sort(reverse=True)
for throw in throws:
... |
s677366678 | p03469 | u352021237 | 1515384132 | Python | Python (2.7.6) | py | Runtime Error | 11 | 2568 | 143 | n=int(raw_input())
N=[]
for i in range(n):
N.append(int(raw_input()))
N.sort()
ans=1
for i in range(1,n):
if N[i]!=N[i-1]:
ans+=1
print ans |
s384658753 | p03469 | u499259667 | 1515384048 | Python | PyPy3 (2.4.0) | py | Runtime Error | 165 | 38640 | 288 | N,Y = map(int,input().split())
Y = Y/1000
torf = False
for numoft in range(N+1):
for numof5t in range(N-numoft+1):
numof10t = (N)-(numoft+numof5t)
if Y == numoft + 5*numof5t + 10*numof10t:
print(numof10t,numof5t,numoft)
exit()
print("-1 -1 -1") |
s946696519 | p03469 | u688375653 | 1515382181 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 469 | s=input()
s=s.split(' ')
maisuu = int(s[0])
maney = int(s[1])
minn_man = int(maney/10000)+1
minn_sen = int(maney / 1000 )+1
minn_go = int(maney / 5000) +1
flg=True
for man in range(0,minn_man):
for go in range(0,minn_go):
for sen in range(0,minn_sen):
if man+go+sen == maisuu:
if man*10000+ go*5000 + sen*10... |
s948223441 | p03469 | u688375653 | 1515382157 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 473 | s=raw_input()
s=s.split(' ')
maisuu = int(s[0])
maney = int(s[1])
minn_man = int(maney/10000)+1
minn_sen = int(maney / 1000 )+1
minn_go = int(maney / 5000) +1
flg=True
for man in range(0,minn_man):
for go in range(0,minn_go):
for sen in range(0,minn_sen):
if man+go+sen == maisuu:
if man*10000+ go*5000 + se... |
s632836553 | p03469 | u674732216 | 1515382117 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3064 | 416 | R = lambda type_ = "int": list(map(eval(type_), input().split(' ')))
N, H = R()
a, b = 0, []
while N:
a_, b_ = R()
b.append(b_)
a = max(a, a_)
N -= 1
b.sort()
i = len(b) - 1
while i >= 0 and H > 0 and b[i] >= a:
H -= b[i]
i -= 1
if i < 0 and H > 0:
print(len(b) + (H - 1) // a + 1)
eli... |
s092898358 | p03469 | u188106427 | 1515381863 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 553 | def search(value, ten, five, one, num):
global ans
if ans or value < 0:
return
if value == 0 and (ten+five+one) == num:
ans = (ten, five, one)
search(value-10, ten+1,five,one, num)
search(value-5, ten, five+1, one, num)
search(value-1, ten, five,one+1, num)
num, value = ma... |
s324424795 | p03469 | u975561820 | 1515381843 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 437 | n, h = (int(s) for s in input().split())
a = []
b = []
for i in range(n):
a_i, b_i = (int(s) for s in input().split())
a.append(a_i)
b.append(b_i)
a_max = max(a)
b.sort(reverse=True)
for i, b_i in enumerate(b):
if b_i > a_max:
h -= b_i
if h <= 0:
print(i + 1)
... |
s917114829 | p03469 | u541091793 | 1515381713 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 213 | n = int(input())
mochi = [int(input()) for i in range(n)]
mochi.sort(reverse=True)
size = 0
max = 9999999999
for m in mochi:
# print(m)
if m < max:
size += 1
max = m
# 出力
print(size)
|
s447832606 | p03469 | u850664243 | 1515381610 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 448 | import math
N,H = map(int,input().split())
aList = []
bList = []
for count in range(0,N):
a,b = map(int, input().split())
aList.append(a)
bList.append(b)
bList.sort()
bList.reverse()
maxA = max(aList)
count = 0
damage = 0
for b in bList:
if maxA < b:
damage+=b
count+=1
if damage ... |
s700370463 | p03469 | u609566963 | 1515381545 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 97 | N = input()
a = []
for i in range(N):
a.append(input())
a= list(set(a))
a.sort()
print len(a) |
s711679119 | p03469 | u939702463 | 1515380430 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 356 | n, y = map(int, input().split())
a = 0
b = 0
c = n
ans = c * 1000
while ans < y:
if y - ans >= 9000:
tmp = (y - ans) // 9000
a += tmp
c -= tmp
elif y - ans >= 4000:
tmp = (y - ans) // 4000
b += tmp
c -= tmp
ans = a * 10000 + b * 5000 + c * 1000
if ans != y:... |
s481178094 | p03469 | u704521025 | 1515380426 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 329 | N = input()
Y = input()
x = y = z = 0
z = N
while(1):
if 10000*x+5000*y+1000*z == Y:
print x,y,z
break
else:
if z > 0:
y += 1
z -= 1
elif y > 0:
x += 1
y = 0
z = N - x
else:
print -1, -1, -1
... |
s498316968 | p03469 | u688375653 | 1515380332 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 583 | s=input()
s=s.split(' ')
maisuu = int(s[0])
maney = int(s[1])
minn_man = int(maney/10000)
minn_go = int((maney%10000)/5000)
minn_sen = int((maney%5000)/1000)
flg = True
min_maisuu = minn_man+minn_go+minn_sen
if min_maisuu <= maisuu <= maney/1000:
minn_go = maney / 5000 +1
minn_sen = maney / 1000 +1
minn_man += 1... |
s480966701 | p03469 | u541091793 | 1515379857 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 71 | # -*- coding: utf-8 -*-
date = input()
# 出力
print "2018" + date[4:] |
s749552924 | p03469 | u364618491 | 1515379488 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 219 | # coding: utf-8
# Your code here!
n,y=map(int,input().split())
for i in range(n+1):
for j in range(n+1-i):
if(i*10000+j*5000+(n-i-j)*1000==y):
print(i,j,n-i-j)
exit()
print(-1,-1,-1) |
s136512734 | p03469 | u279317402 | 1515379297 | Python | Python (3.4.3) | py | Runtime Error | 19 | 2940 | 62 | s = str(raw_input())
s = s.replace('2017', '2018', 1)
print(s) |
s815109585 | p03469 | u279317402 | 1515379172 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 57 | s = raw_input()
s = s.replace('2017', '2018', 1)
print(s) |
s756550075 | p03469 | u006493569 | 1515379041 | Python | PyPy3 (2.4.0) | py | Runtime Error | 166 | 38640 | 308 | n, h = map(int, input().split())
a = []
b = []
for i in range(n):
x, y = map(int, input().split())
a.append(x)
b.append(y)
max_a = max(a)
ans = 0
for x in reversed(sorted(filter(lambda x: x >= max_a, b))):
h -= x
ans += 1
if h <= 0: break
ans += max(0, (h + max_a - 1) // max_a)
print(ans)
|
s406428317 | p03469 | u279317402 | 1515378998 | Python | Python (3.4.3) | py | Runtime Error | 23 | 3188 | 71 | import re
s = str(raw_input)
s = re.sub('2018', '2017', s, 1)
print(s) |
s736298337 | p03469 | u158225062 | 1515378645 | Python | Python (3.4.3) | py | Runtime Error | 1684 | 21016 | 135 | # coding: utf-8
import numpy
N = input()
N_list = list(N)
map(str,N_list)
aaa = []
aaa = set(N_list)
ans = len(ans) - 1
print(ans) |
s357932406 | p03469 | u332949044 | 1515378479 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 32 | s = input()
print("2018"+s[4:]) |
s483267450 | p03469 | u332949044 | 1515378000 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 66 | s = input()
s[0] = '2'
s[1] = '0'
s[2] = '1'
s[3] = '7'
print s
|
s925986348 | p03469 | u124843595 | 1515377874 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 76 | n=int(input())
d=[int(input()) for _ in range(n)]
print(len(set(sorted(d)))) |
s925852658 | p03469 | u847901871 | 1515377584 | Python | Python (3.4.3) | py | Runtime Error | 129 | 4592 | 166 | import datetime
input_time = input()
old_date = datetime.datetime.strptime(input_time, '%Y/%m/%d')
new_date = old_date + datetime.timedelta(years=1)
print(new_date)
|
s933972458 | p03469 | u688375653 | 1515377342 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 22 | s=input_raw()
print(s) |
s528893626 | p03469 | u688375653 | 1515377162 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 71 | s=raw_input()
data = s.split('/')
out = '2018/01/'+data[2]
print(out) |
s668192110 | p03469 | u314057689 | 1515377104 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 33 | s = input()
print(2018 + s[5:]) |
s935343799 | p03469 | u688375653 | 1515377062 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 126 | s=raw_input()
data = s.split('/')
length = len(data)
out = '2018'
for i in range(1,length):
out += '/'+data[i]
print(out) |
s440525058 | p03469 | u050708958 | 1515376940 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 33 | print('2018',sep='' ,input()[4:]) |
s154708484 | p03469 | u452198080 | 1515376893 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 54 | s=input()
s[0]='2'
s[1]='0'
s[2]='1'
s[3]='8'
print(s) |
s096672108 | p03469 | u657357805 | 1515376881 | Python | Python (2.7.6) | py | Runtime Error | 12 | 2572 | 37 | print(input().replace("2017","2018")) |
s122981910 | p03469 | u865741247 | 1515376876 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 27 | a=input()
a[3]='8'
print(a) |
s228691724 | p03469 | u314057689 | 1515376862 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3316 | 37 | s = int(input())
print(2018 + s[5:]) |
s175996385 | p03469 | u652737716 | 1515376848 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 32 | s = input()
s[3] = '8'
print(s)
|
s141346430 | p03470 | u577139181 | 1600741732 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9120 | 86 | N = int(input())
for i in range(N):
d = int(input())
dset = set(d)
print(len(dset)) |
s125148422 | p03470 | u560072805 | 1600094843 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9116 | 188 | N=int(input())
A=list(map(int,input().split()))
B=A.copy()
counter=0
for num in range(N-2):
if A[num] in B:
counter+=1
while A[num] in B:
B.remove(A[num])
print(counter) |
s058304566 | p03470 | u560072805 | 1600094814 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9188 | 188 | N=int(input())
A=list(map(int,input().split()))
B=A.copy()
counter=0
for num in range(N-1):
if A[num] in B:
counter+=1
while A[num] in B:
B.remove(A[num])
print(counter) |
s438288819 | p03470 | u560072805 | 1600094696 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9184 | 186 | N=int(input())
A=list(map(int,input().split()))
B=A.copy()
counter=0
for num in range(N):
if A[num] in B:
counter+=1
while A[num] in B:
B.remove(A[num])
print(counter) |
s617759500 | p03470 | u560072805 | 1600060410 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9068 | 204 | N=int(input())
A=list(map(int,input().split()))
B=A.copy()
counter=0
for num in range(N):
if A[num] in B:
counter+=1
while A[num] in B:
B.remove(A[num])
else:
continue
print(counter) |
s469218505 | p03470 | u560072805 | 1600060280 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9076 | 183 | N=int(input())
A=list(map(int,input().split()))
B=A.copy()
counter=0
for num in range(N):
if A[num] in B:
counter+=1
while A[num] in B:
B.remove(A[num])
print(counter) |
s344131135 | p03470 | u963963908 | 1600042455 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9008 | 74 | N = int(input())
A = sorted[input() for _ in range(N)]
print(len(set(A)))
|
s779097003 | p03470 | u560072805 | 1600039743 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9032 | 167 | A=list(map(int,input().split()))
count=0
count_sub=0
while len(A) !=0:
count+=1
while count_sub < A.count(A[0]):
A=A.remove(A[0])
count_sub+=1
print(count) |
s183090202 | p03470 | u560072805 | 1600039646 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9176 | 155 | A=list(map(int,input().split()))
count=0
while len(A) !=0:
count+=1
while count_sub < A.count(A[0]):
A=A.remove(A[0])
count_sub+=1
print(count) |
s498629812 | p03470 | u995228997 | 1600030170 | Python | PyPy3 (7.3.0) | py | Runtime Error | 159 | 73900 | 109 | n = int(input())
println(
len(
set(
[
int(input()) for _ in range(n)
]
)
)
) |
s559193862 | p03470 | u179169725 | 1599920739 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9028 | 1435 | mycode = r'''
# distutils: language=c++
# cython: language_level=3
# cython: boundscheck=False
# cython: wraparound=False
# cython: infer_types=True
# cython: cdivision=True
# False:Cython はCの型に対する除算・剰余演算子に関する仕様を、(被演算子間の符号が異なる場合の振る舞いが異なる)Pythonのintの仕様に合わせ、除算する数が0の場合にZeroDivisionErrorを送出します。この処理を行わせると、速度に 35% ぐらいのペナルティが... |
s752644848 | p03470 | u546853743 | 1599692942 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9184 | 228 | n=int(input())
d=list(int(input()) for i in range(n))
cnt=0
st=100
l=[]
for i in range(n):
if d<st:
cnt += 1
st = d
else:
l.append(cnt)
st = 100
cnt = 0
l.sort()
print(l[len(l)-1]) |
s149815725 | p03470 | u546853743 | 1599692867 | Python | Python (3.8.2) | py | Runtime Error | 22 | 8900 | 198 | n=int(input())
d=list(int(input()) for i in range(n))
cnt=0
st=100
l=[]
for i in range(n):
if d<st:
cnt += 1
st = d
else:
l.append(cnt)
st = 100
print(max(l)) |
s093646747 | p03470 | u166849422 | 1599594030 | Python | Python (3.8.2) | py | Runtime Error | 29 | 8996 | 101 | N = int(input())
List = sorted(list(set(list(int(input()) for i in range(N)))))
print(len(List()))
|
s161166542 | p03470 | u546440137 | 1599191942 | Python | Python (3.8.2) | py | Runtime Error | 31 | 9092 | 71 | N=int(input())
d = [int(input()) for i in range(n)]
print(len(set(d))) |
s426419497 | p03470 | u855057563 | 1599091364 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9152 | 90 | n=int(input())
d=[int(input()) for _ in range(n)]
c = collections.Counter(d)
print(len(c)) |
s484273182 | p03470 | u309120194 | 1598645964 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9144 | 119 | N = int(input())
D = [int(input()) for _ in range(N)]
l = [0]*100
for i in range(N):
l[d[i]-1] = 1
print(sum(l)) |
s930907355 | p03470 | u918422508 | 1598163433 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9080 | 88 | n = int(input())
d = []
for i in range(n):
d.extend(int(input()))
print(len(set(d))) |
s221322866 | p03470 | u620846115 | 1598035693 | Python | Python (3.8.2) | py | Runtime Error | 23 | 8828 | 132 | n = int(input())
List=[int(input()) for i in range(n)]
ans = 0
while True
for i,j in range(n):
if i == j:
ans +=1
print(n-ans) |
s476719716 | p03470 | u703180353 | 1597956597 | Python | Python (3.8.2) | py | Runtime Error | 33 | 9184 | 222 | N = int(input())
D = sorted([int(input()) for _ in range(N)])
if len(D) == 1: print(1)
i,prev = 1,D[0]
while i != (len(D)-1):
if D[i] == prev:
D.pop(i)
else:
i +=1
prev = D[i]
print(len(D)) |
s874216792 | p03470 | u703180353 | 1597956512 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9204 | 197 | N = int(input())
D = sorted([int(input()) for _ in range(N)])
i,prev = 1,D[0]
while i != (len(D)-1):
if D[i] == prev:
D.pop(i)
else:
i +=1
prev = D[i]
print(len(D)) |
s275883386 | p03470 | u929793345 | 1597832546 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9008 | 76 | n = int(input())
cake = [input() for i range(n)]
print(len(set(cake)))
|
s152481947 | p03470 | u929793345 | 1597832513 | Python | Python (3.8.2) | py | Runtime Error | 31 | 8948 | 74 | n = int(input())
cake = input() for i range(n)
print(len(set(cake)))
|
s692223157 | p03470 | u107915058 | 1597515749 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9112 | 83 | N = int(input())
d = list(int(input()) for _ in range(N))
print(len(set(sortd(d)))) |
s678570069 | p03470 | u107915058 | 1597515703 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9080 | 84 | N = int(input())
d = lisat(int(input()) for i in range(N))
print(len(set(sortd(d)))) |
s903706104 | p03470 | u107915058 | 1597515626 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9100 | 84 | N = int(input())
d = lisat(int(input()) for _ in range(N))
print(len(set(sortd(d)))) |
s364492507 | p03470 | u345686149 | 1597493685 | Python | Python (3.8.2) | py | Runtime Error | 31 | 9156 | 194 | N = int(input())
d = list(map(int, input().split()))
x = sorted(d, reverse=True)
ans = 1
for i in range(N-1):
if x[i] - x[i+1] >0:
ans += 1
else:
continue
print(ans)
|
s512620072 | p03470 | u963915126 | 1597268403 | Python | Python (3.8.2) | py | Runtime Error | 23 | 8748 | 89 | n = int(input())
s = set()
for i in range(n):
s.add(int(input())
print(min(3,len(s))) |
s407714660 | p03470 | u344030307 | 1597079737 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9152 | 93 | n = int(input())
m = {}
for i in range(n):
x = int(input())
m.add(x)
print(len(m)) |
s447109327 | p03470 | u344030307 | 1597079679 | Python | Python (3.8.2) | py | Runtime Error | 28 | 8980 | 84 | n = int(input())
m = {}
for i in n:
x = int(input())
m.add(x)
print(len(m)) |
s831417702 | p03470 | u794831235 | 1596911224 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9156 | 133 | N=int(input())
A=[input() for i in range(N)]
B=[]
while len(A)!=0:
if A[0] not in B:
B.append(A[0])
A.popleft()
print(len(B)) |
s989967520 | p03470 | u794831235 | 1596911161 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9008 | 129 | N=int(input())
A=[input() i in range(N)]
B=[]
while len(A)!=0:
if A[0] not in B:
B.append(A[0])
A.popleft()
print(len(B)) |
s446808485 | p03470 | u310956674 | 1596751383 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9172 | 161 | N = int(input())
num = list(map(int, input().split()))
num.sort()
count = 1
for i in range(N-1):
if not num[i] == num[i+1]:
count += 1
print(count) |
s399504236 | p03470 | u798260206 | 1596480250 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9164 | 144 | N = int(input())
mochi = []
for i in range(N):
a = int(input())
if not a in mochi:
mochi.append(a)
mochi.sorted()
print(len(mochi)) |
s006939902 | p03470 | u568130550 | 1596247654 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9156 | 72 | N = int(input())
D = [int(input()) for _ in range(n)]
print(len(set(D))) |
s889546407 | p03470 | u113255362 | 1595458515 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9092 | 129 | Row = int(input())
List = []
for i in range (Row):
List.append(list(map(int, input().split())))
s_l = set(List)
print(len(s_l)) |
s083449920 | p03470 | u354527070 | 1594873380 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9172 | 160 | n = int(input())
d = [0] * 100
for i in range(0, n):
inp = int(input())
d[inp] += 1
count = 0
for i in d:
if i > 0:
count += 1
print(count) |
s129241615 | p03470 | u419963262 | 1594430107 | Python | PyPy3 (7.3.0) | py | Runtime Error | 87 | 74616 | 82 | n=int(input)
for i in range(n):
keep.append(int(input()))
print(len(set(keep))) |
s086752252 | p03470 | u706414019 | 1592751404 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9096 | 126 | N = int(input())
d = list((int(input()) for _ in range(N)))
import pandas as pd
print(len(pd.DataFrame(d)[0].value_counts()))
|
s979610225 | p03470 | u005569385 | 1592668616 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9016 | 139 | N = int(input())
list_a = [int(input()) for i in range(N)]
s = []
for i in list_a:
if s.count(i) == 0
s.append(i)
print(len(s)) |
s141102189 | p03470 | u316095188 | 1592382635 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 165 | N = int(input())
d = list(map(int, input().split()))
ans = 1
e = sorted(d,reverse = True)
for i in range(0,N):
if i != 0:
if e[i]<e[i-1]:
ans += 1
print(ans) |
s247176290 | p03470 | u611090896 | 1592164378 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 66 | N = int(input())
d = [int(input()) for i in N]
print(len(set(d)))
|
s322395170 | p03470 | u611090896 | 1592164265 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 60 | N = int(input())
d = [int(input()) for i in N]
print(set(d)) |
s411914214 | p03470 | u611090896 | 1592164020 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 76 | N = int(input())
d = list([int(input()) for i in range(N)])
print(d.count()) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.