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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s558862860 | p03469 | u470542271 | 1554365007 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 241 | n,y = map(int,input().split())
total = 0
for i in range(n+1):
for j in range(n+1-i):
k = n - i - j
total = i*10000 + j*5000 + k*1000
if total == y:
print(i,j,k)
break
total = 0
else:
continue
break
else:
print("-1 -1 -1") |
s316368345 | p03469 | u217940964 | 1554248350 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 941 | from numba import jit
N, Y = map(int, input().split())
count_max = Y / 1000 # all 1000
@jit
def sample(n, y):
ans = '-1 -1 -1'
for i in reversed(range(y // 10000 + 1)):
count_tmp1 = count_max - 9 * i
price_tmp1 = y - 10000 * i
if count_tmp1 < n or price_tmp1 < 0:
continue
... |
s236529903 | p03469 | u217940964 | 1554247311 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 1006 | N, Y = map(int, input().split())
ans = '-1 -1 -1'
count_max = Y / 1000 # all 1000
if (Y % 10000 == 0) and (Y // 10000 == N):
print('{} 0 0'.format(Y//10000))
exit()
for i in reversed(range(Y // 10000)):
count_tmp1 = count_max - 9 * i
price_tmp1 = Y - 10000 * i
if count_tmp1 < N or price_tmp1 < ... |
s609629581 | p03469 | u217940964 | 1554247055 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 935 | N, Y = map(int, input().split())
ans = '-1 -1 -1'
count_max = Y / 1000 # all 1000
if Y % 10000 == 0:
print('{} 0 0'.format(Y//10000))
exit()
for i in reversed(range(Y // 10000)):
count_tmp1 = count_max - 9 * i
price_tmp1 = Y - 10000 * i
if count_tmp1 < N or price_tmp1 < 0:
continue
... |
s107613793 | p03469 | u271469978 | 1554219815 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 315 | #input
n, h = map(int, input().split())
A = []
B = []
for i in range(n):
a, b = map(int,input().split())
A.append(a)
B.append(b)
#manipulation
count = 0
a = max(A)
B.sort(reverse=True)
for b in B:
if (b > a) & (h > 0):
h -= b
count += 1
count += (h + a - 1) // a
#output
print(count) |
s867777226 | p03469 | u051401873 | 1554093760 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 225 | N, Y = map(int, input().split())
for i in range(N + 1):
for j in range(N- i + 1):
k = N - i - j
if Y == 10000 * i + 5000 * j + 1000 * k:
print(" ".join(map(str, [i, j, k])))
quit(0)
print("-1 -1 -1") |
s189446410 | p03469 | u177411511 | 1554081833 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 128 | n = int(input())
li = []
for i in range(n):
num = int(input())
if num not in li:
li.append(num)
print(len(li))
|
s574485244 | p03469 | u830462928 | 1554002849 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 91 | n = int(input())
l = []
for i in range(0, n):
l.append(int(input()))
print(len(set(l))) |
s268859845 | p03469 | u830462928 | 1554002710 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 91 | n = int(input())
l = []
for i in range(0, n):
l.append(int(input()))
print(len(set(l))) |
s323257847 | p03469 | u633355062 | 1553988639 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 43 | a=input()
print(a.replace('2017/','2018/')
|
s087592253 | p03469 | u633355062 | 1553988334 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 27 | a=input()
a[3]='8'
print(a) |
s766205345 | p03469 | u633355062 | 1553988245 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 27 | a=imput()
a[3]='8'
print(a) |
s882100589 | p03469 | u915355756 | 1553934665 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 398 | [N,Y] = list(map(int,input().split()))
x = [0,0,0]
x[0] = Y//10000
x[1] = (Y - (10000*x[0]))//5000
x[2] = (Y - (10000*x[0]) - (5000*x[1]))//1000
ans = [-1,-1,-1]
for i in range(x[0]+1):
for j in range(x[1]+(2*i)+1):
N_temp = (x[0]-i) + (x[1]+2*i-j) + (x[2]+5*j)
if N_temp == N:
ans = [(x[... |
s210364021 | p03469 | u514299323 | 1553899602 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 55 | s = str(input())
t = s.replace("2017","2018")
pirnt(t)
|
s092978817 | p03469 | u514299323 | 1553899318 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 40 | s = str(input())
s[:5] = '2018'
print(s) |
s023655227 | p03469 | u374531474 | 1553804761 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 32 | S = input()
S[3] = '8'
print(S)
|
s928114786 | p03469 | u366959492 | 1553741553 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 39 | s=input()
ss=s.replace(7,8,1)
print(ss) |
s444108261 | p03469 | u100800700 | 1553713527 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 74 | S = input()
S[0] = '2'
S[1] = '0'
S[2] = '1'
S[3] = '8'
print(for i in S) |
s819124542 | p03469 | u107077660 | 1553659080 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 31 | s = input()
s[3] = '8'
print(s) |
s830387141 | p03469 | u923712635 | 1553647870 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 31 | S = input()
S[3] = '8'
print(S) |
s781922557 | p03469 | u432333240 | 1553647152 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 382 | N, Y = map(int, input().split())
# i: man, j: gosen, k: sen
output_flag=0
for i in range(0, N+1):
while output_flag==0:
for j in range(0, N+1-i):
k = N-i-j
if 10000*i+5000*j+1000*k==Y:
print(i, j, k)
output_flag=1
break
if output_fl... |
s878556778 | p03469 | u859897687 | 1553540411 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 27 | a=input()
a[3]='8'
print(a) |
s715455656 | p03469 | u159994501 | 1553460848 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 56 | y,m,d=list(input().split())
y=2018
print(y+"/"+m+"/"+d)
|
s948973142 | p03469 | u159994501 | 1553460762 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 49 | y,m,d=input().split()
y=2018
print(y+"/"+m+"/"+d) |
s636635728 | p03469 | u946732206 | 1553227303 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 300 | N,Y = map(int,input().split())
a = -1
b = -1
c = -1
for i in range(int(N+1)):
for j in range(int(N+1-i)):
k = int(N - i - j)
total = int(10000*i + 5000*j + 1000*k)
if (total == Y) and int(i + j + k) == N:
a = i
b = j
c = k
break
print("{} {} {}".format(a,b,c)) |
s139362714 | p03469 | u227082700 | 1553204832 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 27 | s=input();s[3]="8"
print(s) |
s244357439 | p03469 | u548545174 | 1553196642 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 242 | N, Y = map(int, input().split())
#10000:a, 5000:b, 1000:c
for a in range(N+1):
for b in range(N+1-a):
c = N - a - b
if 10000 * a + 5000 * b + 1000 * c == Y:
print(a, b, c)
exit()
print(-1, -1, -1) |
s262120030 | p03469 | u548545174 | 1553196610 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 485 | N, Y = map(int, input().split())
#10000:a, 5000:b, 1000:c
for a in range(N+1):
for b in range(N+1-a):
c = N - a - b
if 10000 * a + 5000 * b + 1000 * c == Y:
print(a, b, c)
break
print(-1, -1, -1)
N, Y = map(int, input().split())
#10000:a, 5000:b, 1000:c
for a in range(N+1... |
s778662671 | p03469 | u548545174 | 1553196568 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 241 | N, Y = map(int, input().split())
#10000:a, 5000:b, 1000:c
for a in range(N+1):
for b in range(N+1-a):
c = N - a - b
if 10000 * a + 5000 * b + 1000 * c == Y:
print(a, b, c)
break
print(-1, -1, -1) |
s808492648 | p03469 | u367130284 | 1553155234 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 267 | n,h=map(int,input().split())
a=[list(map(int,input().split()))for i in range(n)]
b=max(a,key=lambda x:x[0])[0]
c=sorted(t for(s,t)in a if t>b)[::-1]
d=0
for i in c:
h-=i
d+=1
if h<0:
print(d)
exit()
if h>0:
d+=max(h-1,-1)//b+1
print(d) |
s438788786 | p03469 | u159994501 | 1552947676 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 88 | N = int(input())
d = []
for i in range(N):
d.append(int(input()))
print(len(set(d))) |
s295783831 | p03469 | u399967254 | 1552944013 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 986 | def main():
N,Y = map(int, input().split())
Y /= 1000
candidates = list()
sen = 0; gosen = 0; itiman = 0
sen += amari_sen(Y); Y_amari = Y - amari
if (Y_amari % 10 == 5):
first_sen = sen; first_gosen = gosen+1; first_itiman = itiman
second_sen = sen+5; second_gosen = gosen; second_itiman = itiman
Y_amari -= ... |
s315636296 | p03469 | u260040951 | 1552881722 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 290 | n, y = map(int, input().split())
b = 0
for i in range(n + 1):
if b == 1:
break
for j in range(n - i + 1):
if b == 1:
break
elif i * 10000 + j * 5000 + (n - i - j) * 1000 == y:
print(i, j, n - i - j)
break
print("-1 -1 -1") |
s701764149 | p03469 | u260040951 | 1552881562 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 217 | n, y = map(int, input().split())
for i in range(n + 1):
for j in range(n - i + 1):
if i * 10000 + j * 5000 + (n - i - j) * 1000 == y:
print(i, j, n - i - j)
exit()
print("-1 -1 -1") |
s432968496 | p03469 | u381602071 | 1552877740 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 410 | argv = input().split()
n = int(argv[0])
y = int(argv[1])
a = y // 10000
b = (y % 10000) // 5000
c = (y % 5000) // 1000
ta = a
tb = b
tc = c
if ta + tb + tc == n:
print(ta, tb, tc)
exit(0)
while ta >= 0:
while tb >= 0:
if ta + tb + tc == n:
print(ta, tb, tc)
exit(0)
... |
s381042829 | p03469 | u455177911 | 1552873661 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 605 | n, y = list(map(int, input().split(' ')))
for ten_th in range(min(n, int(y / 10000)), -1, -1):
if y < ten_th * 10000 or n < ten_th:
continue
for five_th in range(min(n - ten_th, int((y - ten_th * 10000) / 5000)), -1, -1):
if y < ten_th * 10000 + five_th * 5000 or n < ten_th + five_th:
... |
s204850353 | p03469 | u878138257 | 1552705810 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 82 | a = int(input().split("/"))
a[0]=2018
print(str(a[0])+"/"+str(a[1])+"/"+str(a[2])) |
s216151094 | p03469 | u878138257 | 1552705597 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 29 | a = input()
a[3]="8"
print(a) |
s964870009 | p03469 | u878138257 | 1552705534 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 27 | a = input()
a[3]=8
print(a) |
s534548818 | p03469 | u305965165 | 1552659857 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 32 | s = input()
s[3] = "8"
print(s) |
s093513629 | p03469 | u129836004 | 1552526398 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 344 | n, y = map(int, input().split())
ans = []
for i in range(n+1):
for j in range(n+1-i):
k = n-i-j
if 10000*i + 5000*j + 1000*k == y and k >=0:
ans.append([i,j,k])
break
if len(ans) >=1:
str_ans = map(str, ans[0])
print(' '.join(str_ans))
if len(ans) == ... |
s397969837 | p03469 | u350049649 | 1552480104 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 40 | s=list(input())
s[3]=8
print(''.join(s)) |
s087846574 | p03469 | u177132624 | 1552428167 | Python | Python (3.4.3) | py | Runtime Error | 20 | 3064 | 475 | N, Y = map(int,input().split())
t = Y//1000
counter = 0
if counter==0:
for i in range(t//10+1):
if counter==0:
for j in range(t//5+1):
if counter==0:
for k in range(t+1):
if (10000*i+5000*j+1000*k)==Y and (i+j+k)==N and counter == 0:... |
s432675247 | p03469 | u292810930 | 1552284271 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 239 | #バケット法による解
N = int(input())
dlist = []
for i in range(N):
dlist.append(int(input()))
dbacket = [0]*100
for d in dlist:
dbacket[d] += 1
answer = 0
for db in dbacket:
if db > 0:
answer += 1
print(answer) |
s876881348 | p03469 | u664652300 | 1552254525 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 27 | a=input()
a[3]="8"
print(a) |
s739767122 | p03469 | u989564346 | 1552231105 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 72 | s = input().rstrip()
s1 = "2018" + s[4:] if s.startwith("2017") else s
|
s352775820 | p03469 | u258436671 | 1552074325 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 31 | s = input()
s[3] = '8'
print(s) |
s493319472 | p03469 | u040986872 | 1552015472 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3188 | 304 | a,b = input().split()
cnt = 0
for i in range(10):
for j in range(10-i):
k = 9-i-j
s = 10000*i + 5000*j + 1000*k
if int(b) == s:
if int(a) == i+j+k:
print("{} {} {}".format(i,j,k))
cnt = 1
else:
continue
break
if cnt != 1:
print("{} {} {}".format(-1,-1,-1)) |
s413599377 | p03469 | u040986872 | 1552012363 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 171 | N = input()
a = []
for i in range(int(N)):
a.append(input())
cnt = []
while(len(a) != 0):
cnt.append(a.count(a[0])-1)
a.remove(a[0])
su = sum(cnt)
print(int(N)-su) |
s236552006 | p03469 | u438662618 | 1551936336 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 322 | N, Y = map(int, input().split())
flag = False
for i in range(N + 1) :
for j in range(N + 1 - i) :
k = N - i - j
if 10000 * i + 5000 * j + 1000 * k == Y :
print(i, j, k)
flag = True
break
if flag == True :
break
if flag == False :
print(-1, -1, -... |
s156028346 | p03469 | u095426154 | 1551832854 | Python | Python (3.4.3) | py | Runtime Error | 23 | 3444 | 570 | import copy
n,hp=map(int,input().split(" "))
la=[0 for i in range(n)]
lb=[0 for i in range(n)]
for i in range(n):
la[i],lb[i]=map(int,input().split(" "))
cnt=0
ma=max(la)
lma=[i for i ,x in enumerate(la) if x==ma]
mib=10**9
for i in lma:
if lb[i]<mib:
mib=lb[i]
k=i
tmp=copy.deepcopy(lb)
while m... |
s625703114 | p03469 | u095426154 | 1551832594 | Python | Python (3.4.3) | py | Runtime Error | 23 | 3444 | 570 | import copy
n,hp=map(int,input().split(" "))
la=[0 for i in range(n)]
lb=[0 for i in range(n)]
for i in range(n):
la[i],lb[i]=map(int,input().split(" "))
cnt=0
ma=max(la)
lma=[i for i ,x in enumerate(la) if x==ma]
mib=10**9
for i in lma:
if lb[i]<mib:
mib=lb[i]
k=i
tmp=copy.deepcopy(lb)
while m... |
s437023204 | p03469 | u095426154 | 1551822574 | Python | Python (3.4.3) | py | Runtime Error | 20 | 3064 | 458 | n,m=list(map(int,input().split(" ")))
x,y,z=0,0,0
j=0
for z in range(n+1):
for y in range(n+1):
for x in range(n+1):
if x+y+z>n:
break
if x+y+z==n:
if x*1000+y*5000+z*10000==m:
print(z,y,x)
j=1
... |
s548217566 | p03469 | u367130284 | 1551714431 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 289 | a,b=map(int,input().split())
for s in range(b//10000+1):
try:
for t in range(b//5000+1):
r=b-s-t
if 10000*s+5000*t+1000*r==b and s+t+r==a:
print(s,t,r)
exit()
except ZeroDivisionError:
continue
print(-1,-1,-1) |
s974991814 | p03469 | u488727722 | 1551290377 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 215 | x,y = map(int,input().split())
for i in range(x+1):
for j in range(x-i+1):
if (i*10000 + j*5000 + (x-i-j+1)*1000) == y:
print(i,j,(x-i-j+1))
exit()
print("-1 -1 -1")
|
s930205203 | p03469 | u815659544 | 1551217930 | Python | Python (3.4.3) | py | Runtime Error | 193 | 12408 | 121 | import numpy as np
n = int(input())
a = np.array(list(map(int, [input() for i in range(n)])))
print(len(np.unique(a)))
|
s768502552 | p03469 | u815659544 | 1551217610 | Python | Python (3.4.3) | py | Runtime Error | 153 | 12392 | 103 | import numpy as np
n = input()
a = np.array(list(map(int, input().split())))
print(len(np.unique(a))) |
s528529940 | p03469 | u392029857 | 1551029255 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 44 | S = input()
print(S.replace("018"), ("017")) |
s434190510 | p03469 | u282228874 | 1550810891 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 67 | n = int(input())
D = [input() for i in range(n)]
print(len(set(D))) |
s122524267 | p03469 | u449555432 | 1550660313 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 40 | s=list(input())
s[3]=8
print(''.join(s)) |
s630504120 | p03469 | u411858517 | 1550502770 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 266 | N, Y = map(int, input().split())
rx, ry, rz = -1, -1, -1
for x in range(N+1):
for y in range(N+1-x):
for z in range(N+1-x-y):
if 1000*x + 5000*y + 1000*z == Y:
rx, ry, rz = x, y, z
break
print(rx, ry, rz) |
s134792194 | p03469 | u963009166 | 1550356476 | Python | Python (3.4.3) | py | Runtime Error | 20 | 2940 | 125 | import sys
input = sys.stdin.readline
N = int(input())
mochi_set = [input() for _ in range(N)]
print(len(set( mochi_set )))
|
s318758920 | p03469 | u543954314 | 1550330590 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 44 | s = list(input())
s[3] = 8
print(''.join(s)) |
s352936460 | p03469 | u190406011 | 1550181231 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 499 | N, Y = map(int, input().split())
max_10000 = Y // 10000
max_5000 = (Y % 10000) // 5000
max_1000 = (Y % 5000) // 1000
mininum = max_1000 + max_5000 + max_10000
maximum = Y // 1000
n_10000 = -1
n_5000 = -1
n_1000 = -1
if (mininum) <= N and (maximum) >= N:
diff = maximum - N
for i in range(diff // 9, -1, -1):
... |
s592012717 | p03469 | u509197077 | 1550114964 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 280 | tuple=input()
list=tuple.split()
list=[int(i) for i in list]
N=list[0]
Y=list[1]
for i in range(int(Y/10000)+1):
for j in range(int((Y-10000*i)/5000)+1):
if 10000*i+5000*j+1000*(N-i-j)==Y :
print(i,j,N-i-j)
exit()
print("-1 -1 -1")
|
s631359944 | p03469 | u003018968 | 1549155110 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 40 | date = input()
print("2018" + data[4:]) |
s703047362 | p03469 | u316386814 | 1548632282 | Python | Python (3.4.3) | py | Runtime Error | 19 | 2940 | 31 | s = input()
s[3] = '8'
print(s) |
s800440408 | p03469 | u316386814 | 1548632244 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 29 | s = input()
s[3] = 8
print(s) |
s939886198 | p03469 | u316386814 | 1548632207 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 31 | s = input()
s[3] = [8]
print(s) |
s983326237 | p03469 | u063550014 | 1548200922 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 412 | count,total = list(map(int,input().split()))
NF = True
ret1 = -1
ret2 = -1
ret3 = -1
if total <= count * 10000:
for i in range(count + 1):
rCount = count - i
if total-10000*i <= rCount * 5000:
for j in range(rCount + 1):
if (i*10000 + j*5000 + (count-i-j)*1000) == total:
NF = False
ret1 = i
r... |
s994153795 | p03469 | u063550014 | 1548200825 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 412 | count,total = list(map(int,input().split()))
NF = True
ret1 = -1
ret2 = -1
ret3 = -1
if total <= count * 10000:
for i in range(count + 1):
rCount = count - i
if total-10000*i <= rCount * 5000:
for j in range(rCount + 1):
if (i*10000 + j*5000 + (count-i-j)*1000) == total:
NF = False
ret1 = i
r... |
s053820630 | p03469 | u444732068 | 1547877600 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 19 | print("2018"+s[4:]) |
s530652321 | p03469 | u785578220 | 1547268980 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 84 | a = input()
s = ""
for i in range(a):
if i == 3:s+="8"
else:s+=a[i]
print(s) |
s627599187 | p03469 | u785578220 | 1547268908 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 79 | a = input()
s = ""
for i in range(a):
if i == 3:s+=8
else:s+=i
print(s) |
s978501303 | p03469 | u899395423 | 1547062842 | Python | Python (3.4.3) | py | Runtime Error | 323 | 21504 | 423 | import numpy as np
n, y = np.array(list(input().split()), dtype=int)
vals = np.array([10000, 5000, 1000])
def get_tuple(n, y):
for c in range(n + 1):
for b in range(n + 1 - c):
a = n - c - b
nums = np.array([a, b, c])
yield nums
for nums in get_tuple(n, y):
if (num... |
s462013921 | p03469 | u480831358 | 1547015765 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 27 | s=input()
s[3]="8"
print(s) |
s993852773 | p03469 | u010668949 | 1546461655 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 937 | #入力
N, Y = map(int, input().split())
#総当たりで合計金額を算出
x = []
y = []
z = []
for num_ten_thousand in range(0, N+1):
for num_five_thousand in range(0, N+1):
#千円の枚数を算出
num_one_thousand = N-(num_ten_thousand+num_five_thousand)
#合計金額を算出
total = num... |
s132985403 | p03469 | u197553307 | 1546411303 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 84 | N = int(input())
D = [int(input()) for _ in range(N)]
ans = len(set(D))
print(ans) |
s347618809 | p03469 | u740284863 | 1546310399 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 34 | S = str(input())
S[3]="8"
print(S) |
s197631964 | p03469 | u277556971 | 1545461155 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 113 | #include<iostream>
using namespace std;
int main() {
string s;
cin >> s;
s[3] = '8';
cout << s << endl;
} |
s748043050 | p03469 | u277556971 | 1545461044 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 34 | s = input();
s[3] = '8';
print(s); |
s922319342 | p03469 | u371467115 | 1545413009 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 45 | s=list(input())
s[3]=8
S="".join(s)
print(S)
|
s083956945 | p03469 | u322529408 | 1544324382 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 210 | num,total = map(int,input().split())
for i in range(num+1):
for j in range(num+1):
if i*10000 + j*5000 + (num-i-j)*1000 == total:
print(i,j,num-i-j)
exit()
print("-1 -1 -1")
|
s553144262 | p03469 | u322529408 | 1544323728 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 211 | num,total = map(int,input().split())
for i in range(num+1):
for j in range(num-i+1):
if i*10000 + j*5000 + (num-i-j)*1000 == total:
print(i,j,num-i-j)
exit()
print("-1 -1 -1") |
s439436583 | p03469 | u237362582 | 1544165646 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 424 | N, H = map(int, input().split(' '))
a = []
b = []
for i in range(N):
temp_a, temp_b = input().split(' ')
a.append(int(temp_a))
b.append(int(temp_b))
maxa = max(a)
c = [i for i in b if i > maxa]
sorted_b = sorted(b)[::-1]
i = 0
while(H > 0 and i != N):
if maxa < sorted_b[i]:
H -= sorted_b[i]
... |
s289070571 | p03469 | u921563073 | 1543944183 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 31 | s = input()
s[3] = '8'
print(s) |
s185293432 | p03469 | u694370915 | 1543868775 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 308 | def main(n, y):
for i in range(0, n):
for j in range(0, n - i):
if (i * 10000 + j * 5000 + (n-i-j) * 1000) == y:
return '{} {} {}'.format(i, j, (n - i - j))
return '-1 -1 -1'
if __name__ == '__main__':
n, y = map(int, input().split())
print(main(n, y))
|
s531154143 | p03469 | u848647227 | 1543286098 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 48 | a = list(input())
a[3] = '8'
print("".join.(a))
|
s284989823 | p03469 | u129978636 | 1542821524 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 56 | S = list( map( int, input.split()))
S[3] += 1
print(S) |
s160599141 | p03469 | u236127431 | 1541917607 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 163 | N=int(input())
List=[int(input()) for i in range(N)]
List.sort(key=lambda x:x)
n=1
So=[]
while n<=List[N-1]:
if n in List:
So.append(n)
n+=1
print(len(So)) |
s062679912 | p03469 | u920299620 | 1541820784 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 137 | #include<cstdio>
#include<iostream>
using namespace std;
int main(){
char s[13];
cin >> s;
s[3]='8';
printf("%s\n",s);
} |
s372610451 | p03469 | u897302879 | 1540867161 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 31 | a = input()
a[3] = '8'
print(a) |
s199218470 | p03469 | u131405882 | 1540771711 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 32 | S = input()
S[3] = '8'
print(S) |
s509236392 | p03469 | u330039499 | 1540659337 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 58 | S = raw_input()
MISSED_IDX = 3
S[MISSED_IDX] = 8
print S
|
s990234833 | p03469 | u652150585 | 1540612533 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 220 | # coding: utf-8
# Your code here!
n,y=map(int,input().split())
for i in range(n+1):
for j in range(n-i+1):
if 10000*i+5000*j+1000*(n-i-j)==y:
print(i,j,n-i-j)
exit()
print("-1 -1 -1") |
s051576488 | p03469 | u652150585 | 1540612335 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 222 | # coding: utf-8
# Your code here!
n,y=map(int,input().split())
for i in range(n+1):
for j in range(n-i+1):
if 10000*i+5000*j+1000*(n-i-j)==y:
print(i,j,(n-i-j))
exit()
print("-1 -1 -1") |
s608799272 | p03469 | u652150585 | 1540612182 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 185 | n,y=map(int,input().split())
for i in range(n):
for j in range(n-i+1):
if 10000*i+5000*j+1000*(n-i-j)==y:
print(i,j,(n-i-j))
exit()
print("-1 -1 -1") |
s618421744 | p03469 | u652150585 | 1540612011 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 217 | n, y = map(int, input().split())
for i in range(n + 1):
for j in range(n - i + 1):
if i * 10000 + j * 5000 + (n - i - j) * 1000 == y:
print(i, j, n - i - j)
exit()
print("-1 -1 -1") |
s387846761 | p03469 | u652150585 | 1540611802 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 217 | n, y = map(int, input().split())
for i in range(n + 1):
for j in range(n - i + 1):
if i * 10000 + j * 5000 + (n - i - j) * 1000 == y:
print(i, j, n - i - j)
exit()
print("-1 -1 -1") |
s386438772 | p03469 | u652150585 | 1540611730 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 195 | n,y=map(int,input().split())
#print(n,y)
for i in range(n+1):
for j in range(n+1-i):
if 10000*i+5000*j+1000*(n-i-j)==y:
print(i,j,n-i-j)
exit()
print(-1,-1,-1) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.