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
s334098187
p03469
u089230684
1595919658
Python
Python (3.8.2)
py
Runtime Error
21
8984
373
#input template from sys import stdin, stdout cin = stdin.readline cout = stdout.write mp = lambda: list(map(int, cin().split())) def chars(): #function for taking string input as character array since string in python is immutable s = cin() return(list(s[:len(s) - 1])) #print list def pl(a): for val in a:...
s479733430
p03469
u320098990
1595827530
Python
Python (3.8.2)
py
Runtime Error
25
9124
830
in_list = input().split(' ') N = int(in_list[0]) Y = int(in_list[1]) x = int(Y/10000) y = int(Y/5000) z = int(Y/1000) eureka_flg = 0 for k in range(z+1): if k > N: break; elif k <= N and eureka_flg == 0: for j in range(y+1): if j > N-k: break; elif j <...
s512476316
p03469
u320098990
1595826575
Python
Python (3.8.2)
py
Runtime Error
24
9152
875
in_list = input().split(' ') N = int(in_list[0]) Y = int(in_list[1]) x = int(Y/10000) y = int(Y/5000) z = int(Y/1000) get_answer_flg = 0 for k in range(z+1): if get_answer_flg==1: break; else: res_y_i = Y - k*1000 # print('res_y_first:', res_y_i) for j in range(y+1): ...
s582490233
p03469
u320098990
1595826475
Python
Python (3.8.2)
py
Runtime Error
24
9104
709
in_list = input().split(' ') N = int(in_list[0]) Y = int(in_list[1]) x = int(Y/10000) y = int(Y/5000) z = int(Y/1000) get_answer_flg = 0 for k in range(z+1): if get_answer_flg==1: break; else: res_y_i = Y - k*1000 for j in range(y+1): res_y_j = res_y_i - j*5000 ...
s937163814
p03469
u320098990
1595825254
Python
Python (3.8.2)
py
Runtime Error
28
9156
856
in_list = input().split(' ') N = int(in_list[0]) Y = int(in_list[1]) x = int(Y/10000) y = int(Y/5000) z = int(Y/1000) # x + y + z = N # Y = 10000*i + 5000*j + 1000*k # k = ( Y - 10000*i - 5000*j ) / 1000 eureka_flg = 0 for k in range(min(z+1, N)): if eureka_flg == 0: for j in range(min(y+1, N)): ...
s884637399
p03469
u320098990
1595640149
Python
Python (3.8.2)
py
Runtime Error
21
9144
879
in_list = input().split(' ') N = int(in_list[0]) Y = int(in_list[1]) x = int(Y/10000) y = int(Y/5000) z = int(Y/1000) # x + y + z = N get_answer_flg = 0 for k in range(z+1): if get_answer_flg==1: break; else: res_y_i = Y - k*1000 # print('res_y_first:', res_y_i) for j in rang...
s380336965
p03469
u760595489
1595382229
Python
Python (3.8.2)
py
Runtime Error
24
9044
225
n, res = map(int, input().split()) for x in range(n + 1): for y in range(n - x + 1): z = n - x - y if res == 10000 * x + 5000 * y + 1000 * z: print(x, y, z) exit() print("-1 -1 -1")
s156569425
p03469
u413278979
1595285622
Python
Python (3.8.2)
py
Runtime Error
22
9048
221
N, Y = map(int, input().split()) 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: print(x, y, z) exit() print(-1, -1, -1)
s916046350
p03469
u413278979
1595285562
Python
Python (3.8.2)
py
Runtime Error
23
9156
511
n, y = list(map(int, input().split())) a = b = c = 0 yen_a = 10000 yen_b = 5000 yen_c = 1000 target = y - yen_c * n coef_a = yen_a - yen_c coef_b = yen_b - yen_c a = int(target / coef_a) if a > n or target < 0: a = b = c = -1 else: while a >= 0: if coef_a * a + coef_b * b == target and n-a-b >= 0: ...
s702861770
p03469
u113255362
1594857290
Python
Python (3.8.2)
py
Runtime Error
23
9036
46
s= input() res = "2018"+s[4,len(s)] print(res)
s397472009
p03469
u780698286
1594851692
Python
Python (3.8.2)
py
Runtime Error
21
8992
31
s = input() print(2018 + s[3:])
s594873185
p03469
u438189153
1594791328
Python
Python (3.8.2)
py
Runtime Error
25
9144
210
N,Y=map(int,input().split()) for x in range(N+1): for y in range(N+1): z=N-x-y if x+y+z==N and 10000*x+5000*y+1000*z==Y: print(x,y,z) exit() print(-1,-1,-1,sep=" ")
s626934236
p03469
u438189153
1594698844
Python
Python (3.8.2)
py
Runtime Error
28
9076
53
print(len(set(input()for i in range(int(input())))))
s452178753
p03469
u434587934
1594485018
Python
Python (3.8.2)
py
Runtime Error
21
9108
442
N, Y = map(int, input().split()) print("N: " + str(N)) print("Y: " + str(Y)) man = 10000 gosen = 5000 sen = 1000 flag = False x, y, z = 0, 0, 0 for x in range(N+1): for y in range(N+1): z = N - x - y if (z >= 0) and (Y == man*x + gosen*y + sen*z): flag = True break if ...
s251264512
p03469
u706414019
1594159977
Python
Python (3.8.2)
py
Runtime Error
26
8868
34
s = input() pirnt(s[:3]+'7'+s[4:])
s514681568
p03469
u706414019
1594159932
Python
Python (3.8.2)
py
Runtime Error
22
8868
35
s = input() pirnt(s[0:3]+'7'+s[4:])
s856392046
p03469
u706414019
1594159910
Python
Python (3.8.2)
py
Runtime Error
22
8956
35
s = input() pirnt(s[0:3]='7'+s[4:])
s878705787
p03469
u969848070
1593958493
Python
Python (3.8.2)
py
Runtime Error
27
9024
31
a = input() a[3] = '8' print(a)
s052034160
p03469
u102741086
1593935774
Python
Python (3.8.2)
py
Runtime Error
25
9168
278
N, Y = map(int, input().split()) for i in range(N+1): for j in range(N+1-i): k = N-i-j m = 10000*i+5000*j+1000*k if m == Y: print("%s %s %s" % (i, j, k)) break else: continue break else: print("-1 -1 -1")
s048477585
p03469
u047931063
1593929102
Python
PyPy3 (7.3.0)
py
Runtime Error
91
74800
31
S = input() S[3] = '8' print(S)
s197388773
p03469
u814271993
1593839317
Python
Python (3.8.2)
py
Runtime Error
24
9016
150
n = int(input()) d = [int(input()) for i in range(n)] ans = [] for i in range(n): if d[i] not in ans: ans.append(d[i]) print(len(ans))
s260164809
p03469
u629607744
1593803271
Python
Python (3.8.2)
py
Runtime Error
25
8964
34
s = str(input()) s[3]="8" print(s)
s377593711
p03469
u550146922
1593712398
Python
PyPy3 (7.3.0)
py
Runtime Error
95
74840
282
import itertools n,y = map(int,input().split()) z = y//1000 list = list(range(n+1)) for a,b,c in itertools.product(list,list,list): v = 10*a + 5*b + c w = a + b + c if v == z and w == n: break else: a = -1 b = -1 c = -1 print(str(a),str(b),str(c))
s662061553
p03469
u017933050
1593576087
Python
Python (3.8.2)
py
Runtime Error
26
9080
35
s = input() s[:4] = '2017' print(s)
s377261993
p03469
u858670323
1593544160
Python
Python (3.8.2)
py
Runtime Error
20
9084
34
S = str(input()) S[3] = 8 print(S)
s845325843
p03469
u943386568
1593419213
Python
Python (3.8.2)
py
Runtime Error
24
9048
284
N,Y = map(int,input().split()) exist_flag = False for i in range(N+1): for j in range(N+1-i): if Y == 10000*i + 5000*j + 1000*(N-i-j): exist_flag = True break if exist_flag: break if not exist_flag: i,j,k = -1, -1, -1 print(i, j, k)
s083260100
p03469
u088488125
1593364700
Python
Python (3.8.2)
py
Runtime Error
25
8992
31
s=input() print(s[:2]+"8"+s[4:]
s031348830
p03469
u937238023
1592760172
Python
Python (3.8.2)
py
Runtime Error
19
8956
31
s = input() s[3] = '8' print(s)
s123962662
p03469
u103902792
1592687127
Python
Python (3.8.2)
py
Runtime Error
26
9000
31
s= input() s[3] = '8' print(s)
s202855593
p03469
u042347918
1592451305
Python
Python (3.4.3)
py
Runtime Error
20
3060
363
#N枚のお金N,合計金額Y N, Y = map(int, input().split()) """ a = 0 #1000円札の枚数 b = 0 #5000円札の枚数 c = 0 #10000円札の枚数 X = 0 #合計金額 """ for a in range(N+1): for b in range(N-a+1): X = 1000*a + 5000*b + 10000*(N-a-b) if X == Y: print(a, b, N-a-b) exit() print("-1 -1 -1")
s384233067
p03469
u582614471
1592238765
Python
Python (3.4.3)
py
Runtime Error
17
2940
29
s = input() s[3]="8" print(s)
s378410540
p03469
u498136917
1592184384
Python
Python (3.4.3)
py
Runtime Error
17
2940
57
x = list(map(int, input().split())) print(x.index(0) + 1)
s232109192
p03469
u626228246
1591926422
Python
Python (3.4.3)
py
Runtime Error
17
2940
42
S = input() print(S.replace("2017","2018")
s086419137
p03469
u079022693
1591907924
Python
Python (3.4.3)
py
Runtime Error
17
3064
449
from sys import stdin def main(): #入力 readline=stdin.readline n,y=map(int,readline().split()) flag=False for i in range(0,n+1): for j in range(0,n+1): if n<i+j: continue k=n-i-j if 10000*i+5000*j+1000*k==y: print(i,j,k) fla...
s295706698
p03469
u436721750
1591843142
Python
Python (3.4.3)
py
Runtime Error
17
3064
240
N,Y=map(int, input().split()) m=Y/1000 M=m-N x=M//9 M2=M-9*x y=M2//4 z=N-x-y if Y%1000 !=0: print("-1 -1 -1") elif 9*x+4*y != m-N: print("-1 -1 -1") elif 10000*x+5000*y+1000*z==Y: print(int(x),int(y),int(z)) else: print("-1 -1 -1")
s815232667
p03469
u746428948
1591755449
Python
Python (3.4.3)
py
Runtime Error
17
2940
31
s = input() s[3] = '8' print(s)
s171041723
p03469
u047197186
1591678521
Python
Python (3.4.3)
py
Runtime Error
17
2940
62
s = input() y, m, d = s.split("/") print("2018/" + m + "/" d)
s311393795
p03469
u047197186
1591678492
Python
Python (3.4.3)
py
Runtime Error
18
2940
60
s = input() y, m, d = s.split("/") print("2018/" m + "/" d)
s040583404
p03469
u946370443
1591617935
Python
PyPy3 (2.4.0)
py
Runtime Error
161
38256
174
N=int(input()) d_list=[] for i in range(N): a=int(input()) for k in d_list: if a==k: break else: d_list.append(a) print(len(d_list))
s098111956
p03469
u350093546
1591461345
Python
Python (3.4.3)
py
Runtime Error
17
2940
27
s=input() s[3]='8' print(s)
s170469638
p03469
u357751375
1591307738
Python
Python (3.4.3)
py
Runtime Error
17
2940
64
a,b,c = input().split(/) a = '2018' print(a + '/' + b + '/' + c)
s849843365
p03469
u055507189
1591247535
Python
Python (3.4.3)
py
Runtime Error
17
2940
37
s = str(input()) s[3] = "7" print(s)
s919049615
p03469
u955484068
1591134758
Python
Python (3.4.3)
py
Runtime Error
17
2940
324
N, Y=map(int,input().split())#二つの数字をペアで入力。この時スペース区切りでInt型に変換 ans = -1,-1,-1 for i in range(N+1): for j in range(N): if i*10000 + j*5000 + (N-i-j)*1000 == Y: #肝となる判定ロジック print(i, j, N-i-j) exit() print('-1 -1 -1')
s114350519
p03469
u272495679
1590970778
Python
Python (3.4.3)
py
Runtime Error
18
3064
290
N = int(input()) D = [0]*100 count = 0 for i in range(N): D[i] = int(input()) for k in D: m = max(D) D.remove(max(D)) count += 1 if max(D) == 0: break while m == max(D): D.remove(max(D)) if max(D) == 0: break print("{}".format(count))
s512728750
p03469
u063614215
1590894452
Python
Python (3.4.3)
py
Runtime Error
17
2940
36
s = input() s[:4] = '2018' print(s)
s508430152
p03469
u958506960
1590889023
Python
Python (3.4.3)
py
Runtime Error
18
2940
213
n, y = map(int, input().split()) y //= 1000 for a in range(n + 1): for b in range(n + 1): c = n - a - b if 10*a + 5*b + c == y: print(a, b, c) exit() print(-1, -1, -1)
s414300593
p03469
u179019249
1590871150
Python
Python (3.4.3)
py
Runtime Error
17
3060
257
N, Y = map(int, input().split()) i_t = j_t = k_t = -1 for i in range(N+1): for j in range(N+1): k = N - i - j if 10000*i+5000*j+1000*k == Y: i_t = i j_t = j k_t = k print(str(i_t), str(j_t), str(k_t))
s248740787
p03469
u179019249
1590871045
Python
Python (3.4.3)
py
Runtime Error
17
3060
259
N, Y = map(int, input().split()) i_t = j_t = k_t = -1 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: i_t = i j_t = j k_t = k print(str(i_t), str(j_t), str(k_t))
s293126811
p03469
u179019249
1590870740
Python
Python (3.4.3)
py
Runtime Error
17
3060
257
N, Y = map(int, input().split()) i_t = j_t = k_t = -1 for i in range(N+1): for j in range(N+1): k = N - i - j if 10000*i+5000*j+1000*k == Y: i_t = i j_t = j k_t = k print(str(i_t), str(j_t), str(k_t))
s415016004
p03469
u179019249
1590870386
Python
Python (3.4.3)
py
Runtime Error
20
3060
282
N, Y = map(int, input().split()) i_t = j_t = k_t = -1 for i in range(N+1): for j in range(N+1): for k in range(N-i-j): if 10000*i+5000*j+1000*k == Y: i_t = i j_t = j k_t = k print(str(i_t), str(j_t), str(k_t))
s567167612
p03469
u611090896
1590864214
Python
Python (3.4.3)
py
Runtime Error
17
2940
33
S = input() S[3:4] = '8' print(S)
s407349664
p03469
u956547804
1590849562
Python
Python (3.4.3)
py
Runtime Error
17
2940
132
import re result=re.fullmatch(r'(\d{3})(\d)/(\d{2})/(\d{2})',input()) print(result.group(1)+'8/'+result.group(3)+'/'+result.group(4)
s535396423
p03469
u898167769
1590710032
Python
Python (3.4.3)
py
Runtime Error
17
3064
365
N,Y=map(int,input().split()) A=[] for i in range(Y//10000+1): for j in range((Y-i*10000)//5000+1): c1=(Y-10000*i-5000*j)/1000 c2=N-i-j if c1==c2: A=[i,j,c1] break if c1!=c2: continue if len(A)==0: print("-1 -1 -1") else: A[2]=int(A[2]) ...
s328457951
p03469
u543085532
1590630831
Python
Python (3.4.3)
py
Runtime Error
17
2940
50
s = str(input()) print(s.replase('2017', '2018'))
s577810754
p03469
u094999522
1590629999
Python
Python (3.4.3)
py
Runtime Error
17
3060
179
n,y=map(int,input().split()) y //= 1000 for i in range(n+1): p,q = divmod(y-n-i,4) if q == 0 and i <= p-i <= n: print(i,p-2*i, n-p+i) exit() print("-1 "*3)
s411084734
p03469
u597622207
1590602113
Python
Python (3.4.3)
py
Runtime Error
17
3060
218
N, Y = map(int, input().split()) for x in range(N+1): for y in range(N+1): if 10000*x + 5000*y + 1000*(N-(x+y)) == Y and N-(x+y) >= 0: print(x, y, N-(x+y)) exit() print(-1,-1,-1)
s778822503
p03469
u669173971
1590592474
Python
Python (3.4.3)
py
Runtime Error
17
2940
25
s=input() s[3]=8 print(s)
s312498491
p03469
u956433805
1590563359
Python
Python (3.4.3)
py
Runtime Error
17
3060
216
N, Y = map(int, input().split()) for x in range(N+1): for y in range(N+1): if 10000*x + 5000*y + 1000*(N-(x+y)) == Y and N-(x+y) >= 0: print(x, y, N-(x+y)) exit() print(-1,-1,-1)
s775077760
p03469
u045628053
1590540833
Python
Python (3.4.3)
py
Runtime Error
17
3064
316
import sys n,y = [ int(i) for i in input().split()] main_list = input().split() n = int(main_list[0]) y = int(main_list[1][:-3]) for i in range((y//10)+1): for j in range(2): if y == i*10 + j*5 + (n-i-j)*1: print(" ".join(list(map(str,[i,j,n-i-j])))) sys.exit() print("-1 -1 -1")
s550402762
p03469
u045628053
1590540553
Python
Python (3.4.3)
py
Runtime Error
18
3060
264
main_list = input().split() n = int(main_list[0]) y = int(main_list[1][:-3]) l = int(main_list[1][:1]) +1 for i in range(l): for j in range(2): if y == i*10 + j*5 + (n-i-j)*1: print(" ".join(list(map(str,[i,j,n-i-j])))) print("-1 -1 -1")
s847422778
p03469
u045628053
1590540194
Python
Python (3.4.3)
py
Runtime Error
17
3060
202
n,y = [ int(i) for i in input().split()] for i in range(n+1): for j in range(2): if y == i*10000 + j*5000 + (n-i-j)*1000: print(" ".join(list(map(str,[i,j,n-i-j])))) print(n,y)
s219467023
p03469
u874001579
1590453676
Python
Python (3.4.3)
py
Runtime Error
18
2940
195
#nは札枚数 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')
s215334570
p03469
u874001579
1590448459
Python
Python (3.4.3)
py
Runtime Error
17
2940
98
n = int(input()) mochi = [] for i in range(n): mochi.append(int(input())) print(len(set(mochi)))
s669175883
p03469
u883040023
1590373516
Python
PyPy3 (2.4.0)
py
Runtime Error
163
38256
316
n,y = map(int,input().split()) ans = [-1,-1,-1] cnt = 0 for i in range(n+1): if cnt == 1: break for j in range(n-i+1): k = n-i-j if i*10000 + j*5000 + k*1000 == y: ans = [i,j,k] cnt += 1 break print(*ans,sep=" ")
s844905417
p03469
u637918426
1589946012
Python
Python (3.4.3)
py
Runtime Error
17
2940
31
S = input() S[3] = '8' print(S)
s798961212
p03469
u846385882
1589889865
Python
Python (3.4.3)
py
Runtime Error
17
3064
442
N,Y=map(int,input().split()) #N=1000 #Y=1234000 x_max=int(Y/10000) y_max=int(Y/5000) print(x_max) XX=-1 YY=-1 ZZ=-1 for x in range(N+1): for y in range(N+1): z=N-(x+y) if z>=0: k=10000*x+5000*y+1000*z #print(k) if Y==k: K=k XX=x ...
s394518291
p03469
u911531682
1589733047
Python
Python (3.4.3)
py
Runtime Error
17
3064
368
N, Y = [int(_) for _ in input().split()] x = 0 y = 0 z = 0 isOK = False def sumMoney(x, y, z): return x*10000+y*5000+z*1000 for z in range(N+1): for y in range(N-z): x = N-z-y if sumMoney(x, y, z) == Y: print(x, y, z) isOK = True break if isOK: ...
s039134870
p03469
u806257533
1589689639
Python
Python (3.4.3)
py
Runtime Error
18
3064
430
all = list(map(int, input().split())) N = all[0] Y = all[1] check = 0 for i in range(N): for j in range(N-i): c = (N-(i+j)) total = 10000*i + 5000*j + 1000*c if Y!=total: continue else: yu = i hi = j no = c check += 1 if ...
s087064065
p03469
u806257533
1589688887
Python
Python (3.4.3)
py
Runtime Error
17
3064
515
all = list(map(int, input().split())) N = all[0] Y = all[1] for i in range(N): for j in range(N-i): if N!=i+j+abs(N-(i+j)): yu = -1 hi = -1 no = -1 break else: total = 10000*i + 5000*j + 1000*(N-(i+j)) if Y!=total: ...
s592181788
p03469
u806257533
1589687054
Python
Python (3.4.3)
py
Runtime Error
18
3064
827
all = list(map(int, input().split())) N = all[0] Y = all[1] yukichi = 0 higuchi = 0 noguchi = 0 handler = True for i in range(1, N+1): Y -= 10000 if Y==0: handler = False yukichi += 1 break elif Y<0: Y += 10000 break yukichi += 1 if handler: for i in range(1...
s547537470
p03469
u401949008
1589670606
Python
Python (2.7.6)
py
Runtime Error
10
2568
39
s= input() print(s.replace('7', '8',1))
s895628217
p03469
u179019249
1589654919
Python
Python (3.4.3)
py
Runtime Error
17
2940
100
N = int(input()) d = [] for i in range(N): d.append(int(input())) s = list(set(d)) print(len(s))
s319582223
p03469
u566159623
1589509476
Python
Python (3.4.3)
py
Runtime Error
18
3064
596
n, h = map(int, input().split()) a = [0]*n b = [0]*n maxa = 0 for i in range(n): a[i], b[i] = map(int, input().split()) maxa = max(maxa, a[i]) c = [] for i in range(n): if b[i] >= maxa: c.append(b[i]) c.sort() csum = sum(c) count = len(c) if csum >= h: i = 0 while csum - c[i] >= h...
s199496115
p03469
u039192119
1589508736
Python
Python (3.4.3)
py
Runtime Error
18
2940
202
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) else: continue break print(-1,-1,-1)
s665262732
p03469
u854061980
1589502323
Python
PyPy3 (2.4.0)
py
Runtime Error
172
38256
335
n,y = map(int,input().split()) d = 0 for a in range(n+1):#10000 for b in range(n+1):#5000 c = n - a - b x = 10000*a + 5000*b + 1000*c if x == y and c >=0: print("{} {} {}".format(a,b,c)) d =1 break else: continue break if d == 0: pr...
s567105744
p03469
u854061980
1589502059
Python
PyPy3 (2.4.0)
py
Runtime Error
173
38384
331
n,y = map(int,input().split()) d = 0 for a in range(n):#10000 for b in range(n):#5000 c = n - a - b x = 10000*a + 5000*b + 1000*c if x == y and c >=0: print("{} {} {}".format(a,b,c)) d =1 break else: continue break if d == 0: print(...
s873779570
p03469
u115877451
1589426644
Python
Python (3.8.2)
py
Runtime Error
20
9020
63
a,b,c=map(int,inpput().split('/')) a=2018 print(a,'/',b,'/',c)
s735505781
p03469
u536034761
1589390669
Python
Python (3.4.3)
py
Runtime Error
16
2940
29
s = input() s[3] = 8 print(s)
s934348992
p03469
u319065189
1589336849
Python
Python (3.4.3)
py
Runtime Error
17
3064
295
n, y = map(int, input().split()) A = [-1, -1, -1] for i in range(n + 1): for j in range(n - i + 1): if y == 10000 * i + 5000 * j + 1000 * (n - i - j): A = [i, j, n - i - j] break else: continue break print('{} {} {}'.format(A[0], A[1], A[2]))
s002734271
p03469
u696240348
1589243574
Python
PyPy3 (2.4.0)
py
Runtime Error
173
39760
370
n, y = map(int, input().split()) x = 0 for i in range(n + 1): # if 10000*i > y:break for j in range(n - i + 1): # if 10000 * i + 5000 * j > y: # break if 10000 * i + 5000 * j + 1000 * (n - i - j) == y: print(i, j, n - i - j) x = 1 break if x =...
s315977121
p03469
u317533286
1589137518
Python
Python (3.4.3)
py
Runtime Error
17
2940
77
N = int(input()) d = [map(int,input()) for i in range(N)] print(len((set(d)))
s504605961
p03469
u931889893
1589128936
Python
Python (3.4.3)
py
Runtime Error
17
3064
300
N, Y = list(map(int, input().split())) results = [-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 Y == 10000 * x + 5000 * y + 1000 * z: results = [x, y, z] print(results) exit() print(results)
s834617977
p03469
u931889893
1589128898
Python
Python (3.4.3)
py
Runtime Error
18
3064
300
N, Y = list(map(int, input().split())) results = [-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 Y == 10000 * x + 5000 * y + 1000 * z: results = [x, y, z] print(results) exit() print(results)
s676656205
p03469
u071010598
1589092480
Python
Python (3.4.3)
py
Runtime Error
18
3060
299
n, yen = map(int, input().split()) yen //= 1000 for noguchi in range(n + 1): for higuchi in range(n + 1 - noguchi): yukichi = n - noguchi - higuchi if noguchi + higuchi * 5 + yukichi * 10 == yen: print(yukichi, higuchi, noguchi) exit(0) print("-1 -1 -1")
s621534512
p03469
u561113780
1589074265
Python
Python (3.4.3)
py
Runtime Error
18
3064
525
def main(): num, yen_sum = map(int, input().split()) yen_sum /=1000 res = [-1, -1, -1] for bill_10000 in range(num+1): if bill_10000*10 + (num-bill_10000+1)*5 <= yen_sum: continue for bill_5000 in range(num-bill_10000+1): bill_1000 = num - bill_10000 - bill_5000 ...
s724463171
p03469
u911276694
1588992801
Python
Python (3.4.3)
py
Runtime Error
17
3064
255
N=int(input()) d=[0 for i in range(N)] for i in range(N): d[i]=int(input()) for i in range(N): for j in range(N-1): if d[j]<=d[j+1]: temp=d[j] d[j]=d[j+1] d[j+1]=temp i=0 while(i<len(d)-1): if d[i]==d[i+1]: del(d[i+1]) i=i+1 print(len(d))
s161631908
p03469
u584520370
1588968720
Python
Python (3.4.3)
py
Runtime Error
18
3064
367
n, y = map(int, input().split()) j=True if y % 1000 != 0 or y // 10000 > n: print(-1, -1, -1) for th in range(0, n+1) : for fh in range(0, n-th+1) : if th * 10000 + fh * 5000 + (n-fh-th) * 1000 == y : print (th, fh, n-fh-th) j = False break else : continu...
s611850225
p03469
u612223903
1588887000
Python
Python (3.4.3)
py
Runtime Error
17
2940
202
n,Y = map(int,input().split()) Y = int(Y / 1000) ans = [-1,-1,-1] for x in range(n): for y in range(n): if 10*x + 5*y + (n-x-y) == Y and n-x-y >= 0: ans = [x,y,n-x-y] print(*ans)
s052581735
p03469
u612223903
1588886871
Python
Python (3.4.3)
py
Runtime Error
17
2940
202
n,Y = map(int,input().split()) Y = int(Y / 1000) ans = [-1,-1,-1] for x in range(n): for y in range(n): if 10*x + 5*y + (n-x-y) == Y and n-x-y => 0: ans = [x,y,n-x-y] print(*ans)
s682013473
p03469
u612223903
1588886828
Python
Python (3.4.3)
py
Runtime Error
17
3060
202
n,Y = map(int,input().split()) Y = int(Y / 1000) ans = [-1,-1,-1] for x in range(n): for y in range(n): if 10*x + 5*y + (n-x-y) == Y and n-x-y >= 0: ans = [x,y,n-x-y] print(*ans)
s169334807
p03469
u813032162
1588865487
Python
Python (3.4.3)
py
Runtime Error
18
3188
2644
import math def find_argmax(num_list): argmax = sorted(enumerate(num_list), key=lambda x:x[1])[-1][0] return argmax def find_all_more_than(threshold, num_list): indices = [ idx for idx, num in enumerate(num_list) if num > threshold ] return indices def read_input(): ...
s018311168
p03469
u857673087
1588798287
Python
Python (3.4.3)
py
Runtime Error
17
2940
33
S = input() print( 2018 + S[:4])
s835037327
p03469
u029000441
1588771611
Python
Python (3.4.3)
py
Runtime Error
22
3440
1150
import sys input = sys.stdin.readline sys.setrecursionlimit(10**7) from collections import Counter, deque from collections import defaultdict from itertools import combinations, permutations, accumulate, groupby, product from bisect import bisect_left,bisect_right from heapq import heapify, heappop, heappush from math ...
s089889118
p03469
u029000441
1588771596
Python
Python (3.4.3)
py
Runtime Error
25
3316
1150
import sys input = sys.stdin.readline sys.setrecursionlimit(10**7) from collections import Counter, deque from collections import defaultdict from itertools import combinations, permutations, accumulate, groupby, product from bisect import bisect_left,bisect_right from heapq import heapify, heappop, heappush from math ...
s290152080
p03469
u702208001
1588705251
Python
Python (3.4.3)
py
Runtime Error
17
2940
45
s = input() print(s.replace(a[0:4], '2018'))
s262290627
p03469
u018591138
1588557251
Python
Python (3.4.3)
py
Runtime Error
18
3064
344
N, Y = map(int, input().split()) flag = False for i in range(1,N): # 1000 for j in range(1,N): #5000 k=N-i-j total = i*1000 + j*5000 + k*10000 if(N==i+j+k and total==Y): flag = True print(str(k)+" " +str(j) +" "+ str(i)) break if flag == Fals...
s139548185
p03469
u049355439
1588532675
Python
Python (3.4.3)
py
Runtime Error
17
2940
32
s = input() s[3] = "8" print(s)
s259577645
p03469
u049355439
1588532636
Python
Python (3.4.3)
py
Runtime Error
18
2940
32
s = input() s[3] = '8' print(s)
s068066327
p03469
u049355439
1588532589
Python
Python (3.4.3)
py
Runtime Error
18
2940
29
s = input() s[3] = 8 print(s)
s348441558
p03469
u049355439
1588530508
Python
Python (3.4.3)
py
Runtime Error
17
2940
39
s = input() s[3] = 7 s[8], s[9] = int()