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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s292167984 | p03469 | u307159845 | 1588442516 | Python | Python (3.4.3) | py | Runtime Error | 23 | 3064 | 635 | N,Y = map(int, input().split())
a = -1
b = -1
c = -1
flag = 0
for i in range(N + 1):
if flag == 1:
break
if Y - 10000 * i == 0 & i == N:
a = i
b = 0
c = 0
flag = 1
#if Y - 10000 * i - 5000 * (N - i) <= 0:
for j in range(N-i,N+1):
if Y - 10000 * i -... |
s234299183 | p03469 | u289162337 | 1588304121 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 35 | s = input()
print("2017/01/"+s[-2:] |
s810023433 | p03469 | u828139046 | 1588271594 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 50 | s = input()
new_s = s.replace(s[3],8)
print(new_s) |
s245608718 | p03469 | u828139046 | 1588271555 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 37 | s = input()
new_s = s.replace(s[3],8) |
s715441324 | p03469 | u945839160 | 1588178822 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 437 | def resolve():
# 整数 1 つ
n = str(input().rstrip())
# 整数複数個
# a, b, c = list(map(int, input().split()))
# 整数 N 個 (改行区切り)
# N = [int(input()) for i in range(N)]
# 整数 N 個 (スペース区切り)
# N = list(map(int, input().split()))
# 整数 (縦 H 横 W の行列)
# A = [list(map(int, input().split())) for i i... |
s680390561 | p03469 | u945839160 | 1588178787 | Python | PyPy3 (2.4.0) | py | Runtime Error | 169 | 38384 | 446 | def resolve():
# 整数 1 つ
n = str(input().rstrip())
# 整数複数個
# a, b, c = list(map(int, input().split()))
# 整数 N 個 (改行区切り)
# N = [int(input()) for i in range(N)]
# 整数 N 個 (スペース区切り)
# N = list(map(int, input().split()))
# 整数 (縦 H 横 W の行列)
# A = [list(map(int, input().split())) for i i... |
s612111539 | p03469 | u945839160 | 1588178759 | Python | PyPy3 (2.4.0) | py | Runtime Error | 167 | 38256 | 438 | def resolve():
# 整数 1 つ
n = str(input().rstrip())
# 整数複数個
# a, b, c = list(map(int, input().split()))
# 整数 N 個 (改行区切り)
# N = [int(input()) for i in range(N)]
# 整数 N 個 (スペース区切り)
# N = list(map(int, input().split()))
# 整数 (縦 H 横 W の行列)
# A = [list(map(int, input().split())) for i i... |
s850069190 | p03469 | u945839160 | 1588175305 | Python | PyPy3 (2.4.0) | py | Runtime Error | 161 | 38256 | 430 | def resolve():
# 整数 1 つ
n = str(input())
# 整数複数個
# a, b, c = list(map(int, input().split()))
# 整数 N 個 (改行区切り)
# N = [int(input()) for i in range(N)]
# 整数 N 個 (スペース区切り)
# N = list(map(int, input().split()))
# 整数 (縦 H 横 W の行列)
# A = [list(map(int, input().split())) for i in range(H... |
s637348142 | p03469 | u644126199 | 1588136555 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3188 | 1113 | line = input().split()
sheet = int(line[0])
total =int(line[1])
total_store =total
out = [0,0,0]
sheet_count =0
for i in range(sheet):
switch_10000 =0
switch_5000 =0
if int(total /10000 )>0 and sheet_count <sheet:
total -=10000
sheet_count +=1
out[0] +=1
switch_10000 +=1
if int(total/5000)>0... |
s318709908 | p03469 | u681323954 | 1588087344 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 45 | s = input()
s = s.replece(s[3], "8")
print(s) |
s423607931 | p03469 | u873756840 | 1587958263 | Python | PyPy3 (2.4.0) | py | Runtime Error | 184 | 38256 | 70 | n = int(input())
print(len(set(map(int,[input() for i in range(n)])))) |
s574234563 | p03469 | u549161102 | 1587913146 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 44 | S = list(str,input())
S[3] = str(8)
print(S) |
s313465941 | p03469 | u549161102 | 1587908486 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 32 | S = input()
S[3] = '8'
print(S)
|
s926201600 | p03469 | u549161102 | 1587908375 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 55 | S = list(map(str, input().split()))
S[3] = '8'
print(S) |
s292607014 | p03469 | u549161102 | 1587908202 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 67 | S = list(map(str, input().split()))
del S[2]
S.insert(2,7)
print(S) |
s873498947 | p03469 | u852790844 | 1587872545 | Python | Python (3.4.3) | py | Runtime Error | 268 | 18472 | 145 | import sys
import numpy as np
read = sys.stdin.read
n = int(input())
d = np.array(read().split(), np.int64)
ans = len(np.unique(d))
print(ans) |
s572464526 | p03469 | u549161102 | 1587757367 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 201 | N, Y = map(int, input().split())
for x in range(N+1):
for y in range(N-x+1):
z = N-x-y
if 10000*x+5000*y+1000*z == Y:
print(x, y, z)
exit()
print(-1, -1, -1) |
s512244560 | p03469 | u549161102 | 1587756643 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 188 | N,Y = map(int, input().split())
for i in range(N+1):
for j in range(N+1-i):
k = N-i-j
if Y == 10000*i + 5000*j + 1000*k:
print(i j k)
sys.exit()
print(-1 -1 -1) |
s681870603 | p03469 | u560708725 | 1587754465 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 116 | num = int(input())
mochi = [int(input()) for m in range(0, num)]
maisuu = len(set([n for n in mochi]))
print(maisuu) |
s794555307 | p03469 | u235066013 | 1587738334 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 43 | a=str(input())
a.replace(a[3],"8")
prnit(a) |
s407930506 | p03469 | u235066013 | 1587738256 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 25 | print("2018"+input()(4:)) |
s112253115 | p03469 | u235066013 | 1587738141 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 32 | s=str(input())
s[3]="8"
print(s) |
s150125121 | p03469 | u235066013 | 1587738124 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 33 | s=str((input())
s[3]="8"
print(s) |
s543824556 | p03469 | u235066013 | 1587738060 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 32 | s=str(input())
s[3]="8"
print(s) |
s034764435 | p03469 | u235066013 | 1587738004 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 32 | s=str(input())
s[3]='8'
print(s) |
s817826879 | p03469 | u235066013 | 1587737923 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 44 | s=str(input())
s.replace(s[3],'8')'
print(s) |
s111675744 | p03469 | u235066013 | 1587737799 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 46 | s=str(input())
a=s.replace(s[3],'8')'
print(a) |
s398498655 | p03469 | u235066013 | 1587737730 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 32 | s=int(input())
s[3]='8'
print(s) |
s808249236 | p03469 | u235066013 | 1587737692 | Python | Python (3.4.3) | py | Runtime Error | 20 | 3060 | 27 | s=input()
s[3]='8'
print(s) |
s152920513 | p03469 | u235066013 | 1587737571 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 32 | s=str(input())
s[3]='8'
print(s) |
s703324705 | p03469 | u419963262 | 1587698349 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 28 | S=input()
S[3]="8"
print(S)
|
s723340225 | p03469 | u227085629 | 1587681811 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 32 | s = input()
print(s[:3]+8+s[4:]) |
s881108485 | p03469 | u531599639 | 1587657906 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 37 | print(input().replace('2017', '2018') |
s894803582 | p03469 | u805867943 | 1587609136 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 1597 | # -*- coding: utf-8 -*-
N, Y = map(int, input().split())
result_10000, result_5000, result_1000 = -1, -1, -1
found = False
# 効率を考えて、1万円札 → 5000円札 → 1000円札の順で求める
# 1万円札の数をY//10000から一つずつ減らして調べていく
for num_10000 in reversed(range(0, Y//10000 + 1)):
y_10000 = Y - 10000 * num_10000
n_10000 = N - num_10000
if y_... |
s208398332 | p03469 | u805867943 | 1587608835 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 1591 | # -*- coding: utf-8 -*-
N, Y = map(int, input().split())
result_10000, result_5000, result_1000 = -1, -1, -1
found = False
# 効率を考えて、1万円札 → 5000円札 → 1000円札の順で求める
# 1万円札の数をY//10000から一つずつ減らして調べていく
for num_10000 in reversed(range(0, Y//10000 + 1)):
y_10000 = Y - 10000 * num_10000
n_10000 = N - num_10000
if y_... |
s152226682 | p03469 | u181769094 | 1587531205 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 68 | a,b,c=map(int,input().split("/"))
print(str(a+1)"/"str(b)"/"str(c)) |
s313229388 | p03469 | u798260206 | 1587493340 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 41 | S = input()
S[0]= 2018
print("/".join(S)) |
s072034211 | p03469 | u910295650 | 1587344637 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 92 | A=int(input())
B=int(input())
C=int(input())
D=int(input())
ans=min(A,B)+min(C,D)
print(ans) |
s512403642 | p03469 | u189479417 | 1587312486 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 31 | S = input()
S[3] = '8'
print(S) |
s601733271 | p03469 | u252964975 | 1587264338 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 32 | S=int(input())
S[3]='8'
print(S) |
s679298998 | p03469 | u106181248 | 1587230866 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 31 | s = input()
s[3] = "8"
print(s) |
s734786455 | p03469 | u106181248 | 1587230842 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 29 | s = input()
s[3] = 8
print(s) |
s840398892 | p03469 | u727551259 | 1587229670 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3188 | 356 | n, Y = map(int,input().split())
x , y , z , e = '-1' , '-1' , '-1' , 0
def check(num,total):
for i in range(num+1):
for j in range(num+1):
for k in range(num+1):
if (i + j + k == num) and (10000 * i + 5000 * j + 1000 * k == total):
x , y , z = str(i) , str(j) , str(k)
return x +... |
s042635840 | p03469 | u803096981 | 1587176263 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 310 | import itertools
N, Y = (int(x) for x in input().split())
for x, y in itertools.product(range(N+1), range(N+1)):
z = N - x - y
if 0 <= z and 10000*x + 5000*y + 1000*z == Y:
print('{} {} {}'.format(x, y, z))
break
if not(x + y + z == N and 10000*x + 5000*y + 1000*z == Y):
print('-1 -1 -1') |
s364576087 | p03469 | u803096981 | 1587175715 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 311 | import itertools
N, Y = (int(x) for x in input().split())
for x, y in itertools.product(range(N+1), range(N+1)):
z = N - x - y
if 0 <= z and 10000*x + 5000*y + 1000*z == Y:
print('{} {} {}'.format(x, y, z))
break
if not(x + y + z == N and 10000*x + 5000*y + 1000*z == Y):
print('-1 -1 -1') |
s321072634 | p03469 | u803096981 | 1587175614 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 312 | import itertools
N, Y = (int(x) for x in input().split())
for x, y in itertools.product(range(N+1), range(N+1)):
z == N - x - y
if 0 <= z and 10000*x + 5000*y + 1000*z == Y:
print('{} {} {}'.format(x, y, z))
break
if not(x + y + z == N and 10000*x + 5000*y + 1000*z == Y):
print('-1 -1 -1') |
s465838165 | p03469 | u230117534 | 1587089514 | Python | Python (3.4.3) | py | Runtime Error | 23 | 3064 | 471 | def main():
N, Y = map(int, input().split())
if Y == 10000 * N:
print(N, 0, 0)
return
for i in range(N+1):
tmp = 0
tmp += 10000 * i
for j in range(N-i+1):
_tmp = tmp
_tmp += 5000 * j
if (Y - _tmp > 0 and (Y-_tmp) == 1000 * (N-i-j))... |
s901423749 | p03469 | u652656291 | 1586807896 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 27 | s = input()
s[3]=8
print(s) |
s151061209 | p03469 | u652656291 | 1586807790 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 29 | a = input()
a[3]='8'
print(a) |
s623793897 | p03469 | u506549878 | 1586797760 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 29 | s = input()
s[3]='8'
print(s) |
s603927716 | p03469 | u886730634 | 1586758665 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 198 | N,Y= map(int,input().split())
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)
|
s057629714 | p03469 | u142023109 | 1586649723 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 364 | # solution ver.連想配列(つまり辞書)
N = int(input())
num = [0 for i in range(N)]
dict1 = {} # キーは入力値、値はそのキーがあれば1なければ0(ない値は対応するキーがそもそもないから、すべての値は1)
for i in range(N):
dict1[input()] = 1
list1 = list(dict1.values())
print(len(list1)) |
s884808591 | p03469 | u738898077 | 1586590273 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 70 | s = list(map(str,input()))
s[3] = "8"
print(*s[0:3],"8",*s[4:],sep="") |
s219060183 | p03469 | u738898077 | 1586589972 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 36 | s = str(input())
s[3] = "8"
print(s) |
s184839527 | p03469 | u738898077 | 1586589945 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 34 | s = str(input())
s[3] = 8
print(s) |
s227953327 | p03469 | u179750651 | 1586560779 | Python | Python (3.4.3) | py | Runtime Error | 19 | 2940 | 34 | print(input()[:3]+'8'+input()[5:]) |
s398992172 | p03469 | u581603131 | 1586529031 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 228 | N,Y=map(int,input().split())
answer=-1,-1,-1
for x in range(N+1):
for y in range(N-x+1):
z=N-x-y
if 0<=z<=2000 and 10000*x+5000*y+1000*z==Y:
answer=x,y,z
break
break
print(*answer) |
s071520652 | p03469 | u581603131 | 1586528872 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 261 | N,Y=map(int,input().split())
answer=-1,-1,-1
for x in range(N+1):
for y in range(N-x+1):
z=N-x-y
if 0<=z<=2000 and 10000*x+5000*y+1000*z==Y:
answer=x,y,z
break
else:
continue
break
print(*answer) |
s363782143 | p03469 | u191423660 | 1586378666 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 406 | N, Y = map(int, input().split())
a = 0
for i in range(N):
for ii in range(N):
for iii in range(N):
ans = 10000 * i + 5000 * ii + 1000 * iii
J = i + ii + iii
if ans == Y and J == N:
print(i,ii,iii)
a += 1
break
if a... |
s149112512 | p03469 | u373047809 | 1586311876 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 31 | s = input();s[3] = "8";print(s) |
s568919366 | p03469 | u211805975 | 1586110048 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 277 | n,y = map(int,input().split()) #n枚,y円
a = -1
b = -1
c = -1
for i in range(n+1):
for j in range(n+1):
k = n-i-j
if i*10000+j*5000+k*1000 == y and k >= 0 :
a = i
b = j
c = k
break
print(a,b,c)
|
s052958886 | p03469 | u211805975 | 1586109230 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 247 | n,y = map(int,input().split()) #n枚,y円
a = -1
b = -1
c = -1
for i in range(n+1):
for j in range(n+1):
k = n-i-j
if i*10000+j*5000+k*1000 == y and k >= 0 :
a = i
b = j
c = k
print(a,b,c)
|
s701728565 | p03469 | u085334230 | 1586043655 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 226 | N,Y = map(int, input().split())
for i in range(N + 1):
for l in range(N - i + 1):
if 10000*i + 5000*l + 1000*(N - i - l) == Y:
print(i ,l ,(N - i - l))
exit()
print(-1 ,-1 ,-1)
|
s818650629 | p03469 | u085334230 | 1586043449 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 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") |
s079257262 | p03469 | u085334230 | 1586043371 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 264 | N,Y = map(int, input().split())
for i in range(N + 1):
for l in range(N - i):
ans = 10000*i + 5000*l + 1000*(N - i - l)
if ans == Y:
print("{} {} {} ".format(i ,l ,(N - i - l)))
exit()
print(-1 ,-1 ,-1) |
s600463463 | p03469 | u085334230 | 1586043083 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 256 | N,Y = map(int, input().split())
for i in range(N):
for l in range(N):
ans = 10000*i + 5000*l + 1000*(N - i - l)
if ans == Y:
print("{} {} {} ".format(i ,l ,(N - i - l)))
exit()
print("-1 -1 -1") |
s015632665 | p03469 | u349476738 | 1585853797 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 614 | # coding: utf-8
N, Y=(int(x) for x in input().split())
A = Y // 10000 #Yを越えない最大の10000円札の枚数
B = Y // 5000
C = Y // 1000
roop = 0
for i in range(A+1):
if roop == 1:
break
for j in range(B+1):
if i + j > N:
break
c = N - i - j #c:1000円札の枚数
if 10*i + 5*j + c == Y//1000... |
s506379554 | p03469 | u214936751 | 1585768991 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 282 | N, Y = map(int, input().split())
for x in range(N+1):
for y in range(N-x+1):
if x*10000 + y*5000 + (N-x-y)*1000 == Y:
break
else:
continue
break
if x*10000 + y*5000 + (N-x-y)*1000 == Y:
print(x, y, (N-x-y))
else:
print("-1, -1, -1") |
s872927161 | p03469 | u142211940 | 1585746019 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 77 | N = int(input())
arr = [int(input()) for _ in range(N)]
print(len(set(arr))) |
s900963329 | p03469 | u744920373 | 1585639770 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 964 | import sys
def ii(): return int(sys.stdin.readline())
def mi(): return map(int, sys.stdin.readline().split())
def li(): return list(map(int, sys.stdin.readline().split()))
def li2(N): return [list(map(int, sys.stdin.readline().split())) for i in range(N)]
def dp2(ini, i, j): return [[ini]*i for i2 in range(j)]
def dp3(... |
s336494881 | p03469 | u065578867 | 1585626120 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 382 | n, y = map(int, input().split())
a = 0
b = 0
c = 0
for i in range(n + 1):
for j in range(n - i + 1):
if 10000 * i + 5000 * j + 1000 * (n - i - j) == y:
a = i
b = j
c = n - i - j
break
else:
pass
if a + b + c > 0:
print(str(a), ' ', str(... |
s356098212 | p03469 | u320763652 | 1585594422 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 47 | s = int(input())
print(s[0:3] + '8' +s[4:10] ) |
s070345066 | p03469 | u755180064 | 1585458478 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 135 | if __name__ == '__main__':
t = int(input())
s = []
for i in range(t):
s.append(int(input()))
print(len(set(s))) |
s435592771 | p03469 | u755180064 | 1585458328 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 130 | if __name__ == '__main__':
t = int(input())
s = set()
for i in range(t):
s.add(int(input()))
print(len(s)) |
s282452072 | p03469 | u755180064 | 1585458281 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 81 | t = int(input())
s = set()
for i in range(t):
s.add(int(input()))
print(len(s)) |
s677992161 | p03469 | u291914812 | 1585333698 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 226 | n, y = map(int, input().split())
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)
break
else:
continue
break
else:
print('-1 -1 -1') |
s772594472 | p03469 | u291914812 | 1585333432 | 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+1-i):
if 10000*i + 5000*j + 1000*(N-i-j) == Y:
print(i, j, N-i-j)
break
else:
continue
break
else:
print("-1 -1 -1")
|
s524725916 | p03469 | u291914812 | 1585332934 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 188 | N, Y = map(int, input().split())
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)
break
else:
print("-1 -1 -1")
|
s910535745 | p03469 | u291914812 | 1585332757 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 186 | N, Y = map(int, input().split())
for i in range(N+1):
for j in range(N+1-i):
if 10000*i + 5000*j + 1000*(N-i-j) == Y:
break
print(i, j, N-i-j)
else:
print("-1 -1 -1")
|
s713699494 | p03469 | u291914812 | 1585332606 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 184 | N, Y = map(int, input().split())
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)
else:
print("-1 -1 -1")
|
s227879190 | p03469 | u291914812 | 1585332455 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 186 | N, Y = map(int, input().split())
for i in range(N+1):
for j in range(N+1-i):
if Y == 10000*i + 5000*j + 1000*(N-i-j):
print(i, j, N-i-j)
else:
print("-1, -1, -1")
|
s983999686 | p03469 | u291914812 | 1585332201 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 176 | N, Y = map(int, input().split())
for i in (N+1):
for j in (N+1-i):
if Y == 10000*i + 5000*j + 1000*(N-i-j):
print(i, j, N-i-j)
else:
print("-1, -1, -1")
|
s770439534 | p03469 | u291914812 | 1585332124 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 169 | N, Y = map(int, input().split())
for i in (N+1):
for j in (N+1-i):
if Y == 10000*i + 5000*j + 1000*k:
print(i, j, N-i-j)
else:
print("-1, -1, -1") |
s446736484 | p03469 | u291914812 | 1585331749 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 170 | N, Y = map(int, input().split())
for i in (N+1):
for j in (N+1-i):
if Y == 10000*i + 5000*j + 1000*k
print(i, j, N-i-j)
else:
print("-1, -1, -1")
|
s046119393 | p03469 | u291914812 | 1585331702 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 168 | N, Y = map(int, input().split())
for i in (N+1):
for j in (N+1-i):
if Y == 10000*i + 5000*j + 1000*k
print(i, j, N-i-j)
else:
print(-1, -1, -1)
|
s569895558 | p03469 | u291914812 | 1585331661 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 178 | N, Y = map(int, input().split())
for i in (N+1):
for j in (N+1-i):
k = N-i-j
if Y == 10000*i + 5000*j + 1000*k
print(i, j, k)
else:
print(-1, -1, -1)
|
s071482109 | p03469 | u305388378 | 1585287312 | Python | PyPy3 (2.4.0) | py | Runtime Error | 176 | 38640 | 604 | n, y = map(int, input().split())
def main():
flg = True
if (5000*n) == y:
print('{} {} {}'.format(0, n, 0))
return
if (10000*n) == y:
print('{} {} {}'.format(n, 0, 0))
return
for i in range(n):
for j in range(n-i):
for k in range(n-(j+i)):
... |
s716414891 | p03469 | u305388378 | 1585287211 | Python | PyPy3 (2.4.0) | py | Runtime Error | 168 | 38256 | 603 | n, y = map(int, input().split())
def main():
flg = True
if (5000*n) == y:
print('{} {} {}'.format(0, n, 0))
return
if (10000*n) == y:
print('{} {} {}'.format(n, 0, 0))
return
for i in range(n):
for j in range(n-i):
for k in range(n-(j+i)):
... |
s061632203 | p03469 | u731665172 | 1585076777 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 35 | S=input()
print(S.replace(S[3],'8') |
s307176393 | p03469 | u731665172 | 1585076642 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 34 | S=input()
print(S.replace([3],'8') |
s109639552 | p03469 | u363836311 | 1584844432 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 32 | s=str(input())
s[3]='8'
print(s) |
s544695439 | p03469 | u444722572 | 1584809910 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 43 | date = str(input())
date[3]="8"
print(date) |
s219748628 | p03469 | u225020286 | 1584796775 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 26 | S=input()
S[3]=8
print(S)
|
s321774259 | p03469 | u697696097 | 1584680475 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 28 | ss=input()
ss[3]=8
print(ss) |
s121616783 | p03469 | u631429391 | 1584393244 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 255 | n,y = map(int,input().split())
lst = []
ans = 0
for i in range(y//10000+1):
for j in range(y//5000+1):
k = n-i-j
if k >= 0:
lst.append([i,j,k])
ans += 1
if ans > 0:
print(*lst[0])
else:
print('-1 -1 -1') |
s092135270 | p03469 | u706159977 | 1584132369 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 458 | n,y = map(int,input().split())
if n*1000>y:
print("-1 -1 -1")
else:
x=n*1000
n10 = 0
n5 = 0
while y-x>=9000:
x = x+9000
n10 = n10+1
if n<n10:
print("-1 -1 -1")
break
while y-x>=4000:
x = x+4000
n5 = n5+1
if n10+n5>n:
... |
s866903659 | p03469 | u037563046 | 1583964225 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 53 | print(len(set(input() for i in range(int(input()))))) |
s527491983 | p03469 | u849151695 | 1583934001 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 199 | N = int(input())
#複数段の整数を配列に入力
d=[int(input()) for i in range(N)]
count = N
#sort
d.sort()
for n in range(N):
if d[n-1] == d[n]:
count -=1
#output
print(count) |
s001127410 | p03469 | u069547849 | 1583885045 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 150 | n = int(input())
hoge = [0 for i in range(0,n)]
for i in range(0,n):
hoge[i] = int(input())
number_set = set(hoge)
print(len(number_set)) |
s633571262 | p03469 | u045953894 | 1583817801 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 32 | s = input()
s[3] = '8'
print(s) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.