s_id
string
p_id
string
u_id
string
date
string
language
string
original_language
string
filename_ext
string
status
string
cpu_time
string
memory
string
code_size
string
code
string
error
string
stdout
string
s187396686
p04011
u738265085
1580849543
Python
Python (3.4.3)
py
Runtime Error
17
2940
382
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sin = new Scanner(System.in); int N = sin.nextInt(); int K = sin.nextInt(); int X = sin.nextInt(); int Y = sin.nextInt(); if(N<=K){ int rent = X*N; System.out.println(rent); }else{ int lent = N-K; System.out.println(lent); } } }
File "/tmp/tmplweu0t93/tmpfa12126r.py", line 3 class Main{ ^ SyntaxError: invalid syntax
s009806591
p04011
u391328897
1580743110
Python
Python (3.4.3)
py
Runtime Error
17
2940
67
n, k, x, y = [int(input()) for i in range(3)] print(x*k + y*(n-k))
Traceback (most recent call last): File "/tmp/tmpzb7fwahq/tmp_zzcbsm0.py", line 1, in <module> n, k, x, y = [int(input()) for i in range(3)] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/tmpzb7fwahq/tmp_zzcbsm0.py", line 1, in <listcomp> n, k, x, y = [int(input()) for i in range(3)] ^^^^^^^ EOFError: EOF when reading a line
s045156386
p04011
u847165882
1580579261
Python
PyPy3 (2.4.0)
py
Runtime Error
167
38384
93
N,K,X,Y=[input() for _ in range(4)] if N-K>0: print(X*K+Y*(N-K)) else: print(X*N)
Traceback (most recent call last): File "/tmp/tmphyahbdwj/tmp7cxw76fv.py", line 1, in <module> N,K,X,Y=[input() for _ in range(4)] ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/tmphyahbdwj/tmp7cxw76fv.py", line 1, in <listcomp> N,K,X,Y=[input() for _ in range(4)] ^^^^^^^ EOFError: EOF when reading a line
s862134227
p04011
u847165882
1580579144
Python
PyPy3 (2.4.0)
py
Runtime Error
181
39920
94
N,K,X,Y=[input() for _ in range(4)] if N-K>=0: print(X*K+Y*(N-K)) else: print(X*N)
Traceback (most recent call last): File "/tmp/tmpkosx5yx1/tmpl5rusgn1.py", line 1, in <module> N,K,X,Y=[input() for _ in range(4)] ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/tmpkosx5yx1/tmpl5rusgn1.py", line 1, in <listcomp> N,K,X,Y=[input() for _ in range(4)] ^^^^^^^ EOFError: EOF when reading a line
s311601839
p04011
u752552310
1580255149
Python
Python (3.4.3)
py
Runtime Error
17
2940
93
N, K, X, Y = map(int, input().split()) if N > K: print(K*X + (N-K)*Y) else: print(K*X)
Traceback (most recent call last): File "/tmp/tmp_6onmep8/tmpyjyvz3e1.py", line 1, in <module> N, K, X, Y = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s376288919
p04011
u752552310
1580254940
Python
Python (3.4.3)
py
Runtime Error
17
2940
66
N, K, X, Y = map(int, input().split()) A = K*X + (N-K)*Y print(A)
Traceback (most recent call last): File "/tmp/tmpm6kjioni/tmp669gedlr.py", line 1, in <module> N, K, X, Y = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s099626056
p04011
u329049771
1580154593
Python
Python (3.4.3)
py
Runtime Error
17
2940
89
n,k,x,y = int(input() for i in range(4)) ans = 0 ans += x * k ans += y * (n-k) print(ans)
Traceback (most recent call last): File "/tmp/tmpb9w0xc17/tmpsk1qhnvz.py", line 1, in <module> n,k,x,y = int(input() for i in range(4)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: int() argument must be a string, a bytes-like object or a real number, not 'generator'
s450618738
p04011
u329049771
1580154582
Python
Python (3.4.3)
py
Runtime Error
17
2940
79
n,k,x,y = int(input() for i in range(4)) ans = 0 ans += x * k ans += y * (n-k)
Traceback (most recent call last): File "/tmp/tmpshyl74qj/tmpms1sdmet.py", line 1, in <module> n,k,x,y = int(input() for i in range(4)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: int() argument must be a string, a bytes-like object or a real number, not 'generator'
s978303275
p04011
u036492525
1579880403
Python
Python (3.4.3)
py
Runtime Error
17
2940
133
n=int(input()) a=[]*4 for i range(4): a[i]=int(input()) if(a[0]<a[1]):print(a[2]*a[0]) else:print(a[2]*(a[1]-1)+a[3]*(a[0]-a[1]+1))
File "/tmp/tmp3k9qc06e/tmpmoq8zcl6.py", line 3 for i range(4): ^^^^^ SyntaxError: invalid syntax
s427279795
p04011
u686036872
1578803365
Python
Python (3.4.3)
py
Runtime Error
17
2940
92
N, K, X, Y=[int(input()) for i in range(4)] if N=<K: print(N*X) else: print(K*X+Y*(N-K))
File "/tmp/tmppnd9v9pe/tmp8ullc_5q.py", line 2 if N=<K: ^ SyntaxError: invalid syntax
s048738343
p04011
u686036872
1578803303
Python
Python (3.4.3)
py
Runtime Error
17
2940
90
N, K, X, Y=[int(input()) for i in range(4)] if N=<K: print(N*X) else: print(K*X+Y*(N-K))
File "/tmp/tmpocwfhvt_/tmp_qm6r_ao.py", line 2 if N=<K: ^ SyntaxError: invalid syntax
s503638578
p04011
u686036872
1578803243
Python
Python (3.4.3)
py
Runtime Error
17
2940
92
N, K, X, Y=[int(input()) for i in range(4)] if N=<K: print(K*X) else: print(K*X+Y*(N-K))
File "/tmp/tmpa49h76_u/tmp74mayej1.py", line 2 if N=<K: ^ SyntaxError: invalid syntax
s842056703
p04011
u686036872
1578803222
Python
Python (3.4.3)
py
Runtime Error
18
2940
90
N, K, X, Y=[int(input()) for i in range(4)] if n=<K: print(K*X) else: print(K*X+Y*(N-K))
File "/tmp/tmpl4yoo75q/tmpdpd_58lk.py", line 2 if n=<K: ^ SyntaxError: invalid syntax
s910215682
p04011
u676015657
1577979440
Python
Python (3.4.3)
py
Runtime Error
17
2940
120
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) if N > K: print(X*N + Y*(N-K)) else: print(X*a)
Traceback (most recent call last): File "/tmp/tmpigbe1o8g/tmphwb2qkc6.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s539335971
p04011
u676015657
1577979261
Python
Python (3.4.3)
py
Runtime Error
17
2940
119
N, K, X, Y = int(input()) a = K b = N-K if N > K: total = X*a + Y*b print(total) else: total = X*a print(total)
Traceback (most recent call last): File "/tmp/tmpnuct5473/tmp7i1q50ml.py", line 1, in <module> N, K, X, Y = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s708778068
p04011
u473023730
1577763817
Python
Python (3.4.3)
py
Runtime Error
17
2940
112
N=int(input()) K=int(input()) X=int(input()) Y=int(input()) if N=<K: print(N*X) else: print(K*X + (N-K)*Y)
File "/tmp/tmp8qzef724/tmpdj02bv61.py", line 6 if N=<K: ^ SyntaxError: invalid syntax
s660296629
p04011
u473023730
1577763716
Python
Python (3.4.3)
py
Runtime Error
17
2940
112
N=int(input()) K=int(input()) X=int(input()) Y=int(input()) if N=>K: print(N*X) else: print(K*X + (N-K)*Y)
File "/tmp/tmpm7irs9zh/tmpxrawzz_6.py", line 6 if N=>K: ^ SyntaxError: invalid syntax
s145417267
p04011
u473023730
1577763647
Python
Python (3.4.3)
py
Runtime Error
17
2940
91
N=input() K=input() X=input() Y=input() if N=>K: print(N*X) else: print(K*X + (N-K)*Y)
File "/tmp/tmppglq9xeq/tmp779ih11w.py", line 6 if N=>K: ^ SyntaxError: invalid syntax
s685713841
p04011
u473023730
1577679008
Python
Python (3.4.3)
py
Runtime Error
18
2940
93
N=input() K=input() X=input() Y=input() if N<=K: print(N*X) else: print(K*X + (N-K)*Y)
Traceback (most recent call last): File "/tmp/tmprrmpf2sk/tmp0k32hk3p.py", line 1, in <module> N=input() ^^^^^^^ EOFError: EOF when reading a line
s490874838
p04011
u235376569
1576881190
Python
PyPy3 (2.4.0)
py
Runtime Error
182
38256
282
import itertools kai,av=[int(x) for x in input().rstrip().split()] l=[int(x) for x in input().rstrip().split()] ll=[i for i in range(1,kai+1)] result=[] count=0 for i in ll: for j in itertools.combinations(l,r=i): if av==(sum(j)/i): count+=1 print(count)
Traceback (most recent call last): File "/tmp/tmpqztbjj6p/tmpkmo75nbr.py", line 2, in <module> kai,av=[int(x) for x in input().rstrip().split()] ^^^^^^^ EOFError: EOF when reading a line
s148769708
p04011
u181215519
1576609338
Python
Python (3.4.3)
py
Runtime Error
16
2940
128
[N,K,X,Y] = list( int, input().split() ) if N < K+1 : tot = N * X else : tot = N * K + ( N - K ) * Y print( tot )
Traceback (most recent call last): File "/tmp/tmphobo7utp/tmplglfohjv.py", line 1, in <module> [N,K,X,Y] = list( int, input().split() ) ^^^^^^^ EOFError: EOF when reading a line
s677653271
p04011
u185424824
1576553158
Python
Python (3.4.3)
py
Runtime Error
17
2940
97
N,K,X,Y =[int(input()) for _ in range(4)] if N > K: A = X*K + Y*(N-K) elif: A = X*N print(A)
File "/tmp/tmp6i09ea02/tmpfz8s9bpi.py", line 5 elif: ^ SyntaxError: invalid syntax
s734284076
p04011
u973013625
1576551629
Python
Python (3.4.3)
py
Runtime Error
17
2940
150
n = int(input()) k = int(input()) x = int(input()) y = int(input()) z = 0 for i in range(n): if i >= k: z += y else: z += x print(z)
File "/tmp/tmpjbuyhd0k/tmp3z9yr8yb.py", line 12 print(z) ^ IndentationError: unindent does not match any outer indentation level
s705147497
p04011
u417014669
1576551352
Python
Python (3.4.3)
py
Runtime Error
17
2940
97
n,k,x,y=map(int, input().split("¥n")) tmp=0 if n>=k: print(x*k+y*(n-k)) else: print(x*n)
Traceback (most recent call last): File "/tmp/tmppftzhsb0/tmpae7ertqn.py", line 1, in <module> n,k,x,y=map(int, input().split("¥n")) ^^^^^^^ EOFError: EOF when reading a line
s447739895
p04011
u417014669
1576551305
Python
Python (3.4.3)
py
Runtime Error
17
2940
92
n,k,x,y=map(int, input().split()) tmp=0 if n>=k: print(x*k+y*(n-k)) else: print(x*n)
Traceback (most recent call last): File "/tmp/tmpsueslpsc/tmp1mw0ojwq.py", line 1, in <module> n,k,x,y=map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s723386912
p04011
u417014669
1576551245
Python
Python (3.4.3)
py
Runtime Error
17
2940
101
n,k,x,y=map(int, input().split()) tmp=0 if n>=k: print(x*k+y*(n-k)) else: print(x*n)
Traceback (most recent call last): File "/tmp/tmpd8d1he7a/tmpgkklr3tq.py", line 1, in <module> n,k,x,y=map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s658224970
p04011
u417014669
1576550627
Python
Python (3.4.3)
py
Runtime Error
17
2940
65
n,k,x,y=map(int, input().split()) sum_n=x*k+y*(n-k) print(sum_n)
Traceback (most recent call last): File "/tmp/tmpkhd9a6zs/tmp5vec85cj.py", line 1, in <module> n,k,x,y=map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s878668405
p04011
u473023730
1576439916
Python
Python (3.4.3)
py
Runtime Error
17
2940
111
a=input().split int(a) N=a(0) K=a(1) X=a(2) Y=a(3) if N > K: tot = K*X+(N-K)*Y else: tot = N*X print(tot)
Traceback (most recent call last): File "/tmp/tmp_bndh5ra/tmp_js7wpcb.py", line 1, in <module> a=input().split ^^^^^^^ EOFError: EOF when reading a line
s083467720
p04011
u680851063
1576340053
Python
Python (3.4.3)
py
Runtime Error
17
2940
93
a=int(input()) b=int(input()) c=int(input()) d=int(input()) print(c*b+d*(a-b))a=int(input())
File "/tmp/tmp8plta_ls/tmpnvml583t.py", line 5 print(c*b+d*(a-b))a=int(input()) ^ SyntaxError: invalid syntax
s120292189
p04011
u235376569
1576263821
Python
Python (3.4.3)
py
Runtime Error
17
2940
308
#include<iostream> #include<string> #include<vector> #include<algorithm> #include<set> using namespace std; // cin>>n>>k; // cout<<n<<k<<endl; //string S[100]; int main(){ int N,K,X,Y;cin>>N>>K>>X>>Y; int ans; for(int i=1;i<N+1;i++){ if(K<i){ ans+=Y; }else{ ans+=X; } } cout<<ans<<endl; }
File "/tmp/tmp_tzopvs6/tmpok9i8jpy.py", line 6 using namespace std; ^^^^^^^^^ SyntaxError: invalid syntax
s567573017
p04011
u639592190
1575954828
Python
Python (3.4.3)
py
Runtime Error
17
2940
64
N,K,X,Y=[int(input()) i in range(4)] print(N*X-(X-Y)*max(0,N-K))
File "/tmp/tmpy0b9h2li/tmpiwxecgk0.py", line 1 N,K,X,Y=[int(input()) i in range(4)] ^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: invalid syntax. Perhaps you forgot a comma?
s165344521
p04011
u639592190
1575954643
Python
Python (3.4.3)
py
Runtime Error
17
2940
60
N,K,X,Y=[int(input()) i in range(4)] print(X*N+Y*max(0,N-K))
File "/tmp/tmpwzmjjlk0/tmpqrdwfkrc.py", line 1 N,K,X,Y=[int(input()) i in range(4)] ^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: invalid syntax. Perhaps you forgot a comma?
s149623899
p04011
u639592190
1575954498
Python
Python (3.4.3)
py
Runtime Error
17
2940
60
N,K,X,Y=[int(input()) i in range(4)] print(X*K+Y*max(0,N-K))
File "/tmp/tmpn600s4oy/tmp8rp9ttoq.py", line 1 N,K,X,Y=[int(input()) i in range(4)] ^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: invalid syntax. Perhaps you forgot a comma?
s091675190
p04011
u639592190
1575954404
Python
Python (3.4.3)
py
Runtime Error
17
3064
55
N,K,X,Y=[int(input()) i in range(4)] print(X*K+Y*(N-K))
File "/tmp/tmp14ifgp5_/tmps257pw_j.py", line 1 N,K,X,Y=[int(input()) i in range(4)] ^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: invalid syntax. Perhaps you forgot a comma?
s305106298
p04011
u275212209
1575386460
Python
Python (3.4.3)
py
Runtime Error
17
2940
83
N,K,X,Y= map(int, input().split()) if N<=K: print(N*X) else: print(N*X+(N-K)*Y)
Traceback (most recent call last): File "/tmp/tmp8d3d356x/tmpzv24kv_d.py", line 1, in <module> N,K,X,Y= map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s015186369
p04011
u609814378
1574718301
Python
Python (3.4.3)
py
Runtime Error
17
2940
205
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) # N泊連続で行う。最初の K 泊まで X 円. K+1泊以降はY円 if N <= K: print(X*N) else: print(((N-K)*Y) + (X*Y)
File "/tmp/tmpabaitqyx/tmpkqp4lwxj.py", line 11 print(((N-K)*Y) + (X*Y) ^ SyntaxError: '(' was never closed
s837985022
p04011
u609814378
1574717480
Python
Python (3.4.3)
py
Runtime Error
17
2940
333
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) D = (N-K)*X + (N-(K+1))*Y # N泊連続で行う。最初の K 泊まで X 円. K+1泊以降はY円 if N <= (K+1): print(X*X) elif N >= (K+1): print(((N-K)*X) + ((N-(K+1))*Y) # 10泊する 5泊目までX円 6泊目からY円 (((N-K)*X) + ()
File "/tmp/tmp4uaq0p5v/tmpdzpqkkgg.py", line 13 print(((N-K)*X) + ((N-(K+1))*Y) ^ SyntaxError: '(' was never closed
s093429374
p04011
u094948011
1574548276
Python
Python (3.4.3)
py
Runtime Error
17
3064
130
N,K,X,Y = [input() for i in range(4)] if N <= K: print(N * K) else: S = N * K s = N * (N - K) S += s print(S)
Traceback (most recent call last): File "/tmp/tmp7_r0ub1f/tmprt70s2ox.py", line 1, in <module> N,K,X,Y = [input() for i in range(4)] ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/tmp7_r0ub1f/tmprt70s2ox.py", line 1, in <listcomp> N,K,X,Y = [input() for i in range(4)] ^^^^^^^ EOFError: EOF when reading a line
s910293336
p04011
u836737505
1574299755
Python
Python (3.4.3)
py
Runtime Error
17
2940
120
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) a = 0 if N<K else N-k cost = X*K + Y*a print(cost)
Traceback (most recent call last): File "/tmp/tmp9czhpxhu/tmp8k70d03h.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s646767451
p04011
u007263493
1574093014
Python
Python (3.4.3)
py
Runtime Error
17
2940
157
n = int(input()) k = int(input()) x = int(input()) y = int(input()) if n =< k: answer = k * x else: answer = (n-k) * y + int(answer) print(answer)
File "/tmp/tmpjh4xmaor/tmp0v4pl9ft.py", line 5 if n =< k: ^ SyntaxError: invalid syntax
s488280097
p04011
u007263493
1574092863
Python
Python (3.4.3)
py
Runtime Error
18
2940
136
n = int(input()) k = int(input()) x = int(input()) y = int(input()) if n =< K: answer = k * x else answer = k * y: print answer
File "/tmp/tmp1czw5d70/tmp870a4cp0.py", line 5 if n =< K: ^ SyntaxError: invalid syntax
s965420021
p04011
u779728630
1573673884
Python
Python (3.4.3)
py
Runtime Error
19
3060
98
N, K, X, Y = map(int, input().split()) if N <= K: print(N * X) else: print(K * X + (N-K) * Y)
Traceback (most recent call last): File "/tmp/tmpw85btr4k/tmp8_kfb6lh.py", line 1, in <module> N, K, X, Y = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s049357503
p04011
u633548583
1573566095
Python
Python (3.4.3)
py
Runtime Error
17
2940
103
n,k,x,y=map(int,input().split() for i in range(4)] if n>k: print(x*k+y*(n-k)) else: print(x*k)
File "/tmp/tmpamarl0z1/tmp7kq0lam_.py", line 1 n,k,x,y=map(int,input().split() for i in range(4)] ^ SyntaxError: closing parenthesis ']' does not match opening parenthesis '('
s455674871
p04011
u844697453
1572726396
Python
Python (3.4.3)
py
Runtime Error
18
2940
139
n = int(input()) k = int(input()) x = int(input()) y = int(input()) if n > k: print((k * x + (n-k) * y) else: print(n*x)
File "/tmp/tmpuarv6zgl/tmpdj2isoqh.py", line 6 print((k * x + (n-k) * y) ^ SyntaxError: '(' was never closed
s906459722
p04011
u923659712
1572557033
Python
Python (3.4.3)
py
Runtime Error
18
2940
89
n,k,x,y=map(int,input().split()) if n>k: print(k*x+(n-k)*y) else: print(n*x)
Traceback (most recent call last): File "/tmp/tmp6w4axwg9/tmp4qt1l83u.py", line 1, in <module> n,k,x,y=map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s517990885
p04011
u923659712
1572556557
Python
Python (3.4.3)
py
Runtime Error
17
2940
89
n,k,x,y=map(int,input().split()) if n>k: print(k*x+(n-k)*y) else: print(k*x)
Traceback (most recent call last): File "/tmp/tmpb__dfqf6/tmpgcu7ob4h.py", line 1, in <module> n,k,x,y=map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s050382440
p04011
u923659712
1572556521
Python
Python (3.4.3)
py
Runtime Error
17
2940
90
n,k,x,y=map(int,input().split()) if n>=k: print(k*x+(n-k)*y) else: print(k*x)
Traceback (most recent call last): File "/tmp/tmpjjzmzqen/tmpu1w1zjuj.py", line 1, in <module> n,k,x,y=map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s191498741
p04011
u923659712
1572556327
Python
Python (3.4.3)
py
Runtime Error
17
2940
104
n,k,x,y=map(int,input().split()) if n>=k: print(round(k*x+(n-k)*y)) else: print(round(k*x))
Traceback (most recent call last): File "/tmp/tmpzq9r3tph/tmp9_0w24ip.py", line 1, in <module> n,k,x,y=map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s930396365
p04011
u923659712
1572556066
Python
Python (3.4.3)
py
Runtime Error
17
2940
103
n,k,x,y=map(int,input().split()) if n>k: print(round(k*x+(n-k)*y)) else: print(round(k*x))
Traceback (most recent call last): File "/tmp/tmpc6oeo06k/tmpwaisrl2r.py", line 1, in <module> n,k,x,y=map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s054919953
p04011
u923659712
1572555918
Python
Python (3.4.3)
py
Runtime Error
17
2940
117
n,k,x,y=map(int,input().split()) if n>k: print(round(k*x+(n-k)*y) else: print(round(k*x)
File "/tmp/tmp0awmu79z/tmpml52w0ea.py", line 6 else: ^^^^ SyntaxError: invalid syntax
s172083123
p04011
u171115409
1572499341
Python
Python (3.4.3)
py
Runtime Error
17
2940
174
-*- coding: utf-8 -*- # 整数の入力 N = int(input()) K = int(input()) X = int(input()) Y = int(input()) if(N <= K): sum = N*X else: sum = K*X + (N-K)*Y print(sum)
File "/tmp/tmp6qqmcmfk/tmphtck9sdc.py", line 1 -*- coding: utf-8 -*- IndentationError: unexpected indent
s169617227
p04011
u190086340
1572453020
Python
Python (3.4.3)
py
Runtime Error
18
3064
804
def solve(): def recur(i, n, total): # print("i, n, total", i, n, total) if not TABLE[i][n][total] == -1: # print('cache!') return TABLE[i][n][total] if not i < N: if n > 0 and total == A * n: return 1 return 0 ans1 = recur(i + 1, n, total) ans2 = recur(i + 1, n + 1, total + XS[i]) # print(ans1, ans2) TABLE[i][n][total] = ans1 + ans2 return TABLE[i][n][total] N, A = tuple(map(int, input().split())) XS = tuple(map(int, input().split())) TABLE = [] for _ in range(N + 1): lines = [[-1 for x in range(N * 50 + 1)] for y in range(N + 1)] TABLE.append(lines) return recur(0, 0, 0) if __name__ == '__main__': print(solve())
Traceback (most recent call last): File "/tmp/tmpd1_wnl6h/tmptrg6sqtf.py", line 34, in <module> print(solve()) ^^^^^^^ File "/tmp/tmpd1_wnl6h/tmptrg6sqtf.py", line 22, in solve N, A = tuple(map(int, input().split())) ^^^^^^^ EOFError: EOF when reading a line
s506285217
p04011
u190086340
1572451879
Python
PyPy3 (2.4.0)
py
Runtime Error
189
38512
830
def solve(): def recur(i, n, total): # print("i, n, total", i, n, total) if not TABLE[i][n][total] == -1: # print('cache!') return TABLE[i][n][total] if not i < N: if n > 0 and total == A * n: TABLE[i][n][total] = 1 return 1 TABLE[i][n][total] = 0 return 0 ans1 = recur(i + 1, n, total) ans2 = recur(i + 1, n + 1, total + XS[i]) # print(ans1, ans2) return ans1 + ans2 N, A = tuple(map(int, input().split())) XS = tuple(map(int, input().split())) TABLE = [] for _ in range(N + 1): lines = [[-1 for x in range(N * 50 + 1)] for y in range(N + 1)] TABLE.append(lines) return recur(0, 0, 0) if __name__ == '__main__': print(solve())
Traceback (most recent call last): File "/tmp/tmpo7sc1er2/tmppzzmf1ww.py", line 35, in <module> print(solve()) ^^^^^^^ File "/tmp/tmpo7sc1er2/tmppzzmf1ww.py", line 23, in solve N, A = tuple(map(int, input().split())) ^^^^^^^ EOFError: EOF when reading a line
s766494441
p04011
u671446913
1572221011
Python
Python (3.4.3)
py
Runtime Error
17
2940
249
import collections # N, K = map(int, input().split()) # A = list(map(int, input().split())) N = int(input()) K = int(input()) X = int(input()) Y = int(input()) ans = 0 for i in range(N): if i < K: ans += X else: ans += Y print(ans)
File "/tmp/tmpu8ajduyk/tmpfamauo3l.py", line 14 else: ^^^^ SyntaxError: invalid syntax
s227152224
p04011
u671446913
1572220973
Python
Python (3.4.3)
py
Runtime Error
17
2940
313
import collections # N, K = map(int, input().split()) # A = list(map(int, input().split())) N = int(input()) K = int(input()) X = int(input()) Y = int(input()) ans = 0 for i in range(N): if i < K: ans += X else: ans += Y print(ans)
File "/tmp/tmp2bvegcst/tmpbiicvcj9.py", line 1 import collections IndentationError: unexpected indent
s915437836
p04011
u182765930
1571948462
Python
Python (3.4.3)
py
Runtime Error
24
2940
71
n,k,x,y=[int(input()) for_ in range(4)] print(min(n, k)*x+max(n-k,0)*y)
File "/tmp/tmpzpjpsp2r/tmp7qf5_7cx.py", line 1 n,k,x,y=[int(input()) for_ in range(4)] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: invalid syntax. Perhaps you forgot a comma?
s191187449
p04011
u556589653
1571773217
Python
Python (3.4.3)
py
Runtime Error
17
2940
116
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) if N<=K: print(N*X) else: print(K*X)+(N-K)*Y
Traceback (most recent call last): File "/tmp/tmptk_lie6_/tmp1eiy_67p.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s832037673
p04011
u556589653
1571773173
Python
Python (3.4.3)
py
Runtime Error
17
2940
116
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) if N=<K: print(N*X) else: print(K*X)+(N-K)*Y
File "/tmp/tmpwqdy8unt/tmp3rgl98ix.py", line 5 if N=<K: ^ SyntaxError: invalid syntax
s588041470
p04011
u506858457
1571498717
Python
Python (3.4.3)
py
Runtime Error
17
2940
61
N,K,X,Y=map(int,input().split()) cost=K*X+(N-K)*Y print(cost)
Traceback (most recent call last): File "/tmp/tmp452jhzrz/tmp141zl5hd.py", line 1, in <module> N,K,X,Y=map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s327996577
p04011
u674064321
1570310349
Python
Python (3.4.3)
py
Runtime Error
17
2940
112
n,k,x,y=int(input()) for i in range(4) if n - k > 0: ans = k * x + (n - k) * y else: ans = n * x print(ans)
File "/tmp/tmpolsa1hzk/tmppx2cfo7s.py", line 1 n,k,x,y=int(input()) for i in range(4) ^^^ SyntaxError: invalid syntax
s012511151
p04011
u674064321
1570305589
Python
Python (3.4.3)
py
Runtime Error
18
2940
101
n,k,x,y=(int(input().split()) for i in range(4)) j = 0 if n > k: j = (n - k) * y print(k * x + j)
Traceback (most recent call last): File "/tmp/tmpa4qgemm2/tmpdiildrhl.py", line 1, in <module> n,k,x,y=(int(input().split()) for i in range(4)) ^^^^^^^ File "/tmp/tmpa4qgemm2/tmpdiildrhl.py", line 1, in <genexpr> n,k,x,y=(int(input().split()) for i in range(4)) ^^^^^^^ EOFError: EOF when reading a line
s576591203
p04011
u674064321
1570305396
Python
Python (3.4.3)
py
Runtime Error
17
2940
116
N, K, X, Y = (int(input().split()) for _ in range(4)) t = 0 if N >= K: print(X*K + Y*(N-K)) else: print(X*N)
Traceback (most recent call last): File "/tmp/tmpvazx4kvw/tmpuy4ic2ek.py", line 1, in <module> N, K, X, Y = (int(input().split()) for _ in range(4)) ^^^^^^^^^^ File "/tmp/tmpvazx4kvw/tmpuy4ic2ek.py", line 1, in <genexpr> N, K, X, Y = (int(input().split()) for _ in range(4)) ^^^^^^^ EOFError: EOF when reading a line
s672314963
p04011
u674064321
1570304978
Python
Python (3.4.3)
py
Runtime Error
17
3056
109
n, k, x, y = (int(input().split()) for _ in range(4)) t = 0 if n - k > 0: t = (n - k) * y print(n * x + t)
Traceback (most recent call last): File "/tmp/tmp02uvr6q9/tmpr_nq7h02.py", line 1, in <module> n, k, x, y = (int(input().split()) for _ in range(4)) ^^^^^^^^^^ File "/tmp/tmp02uvr6q9/tmpr_nq7h02.py", line 1, in <genexpr> n, k, x, y = (int(input().split()) for _ in range(4)) ^^^^^^^ EOFError: EOF when reading a line
s878130383
p04011
u674064321
1570304939
Python
Python (3.4.3)
py
Runtime Error
19
2940
107
n, k, x, y = int(input().split()) for _ in range(4) t = 0 if n - k > 0: t = (n - k) * y print(n * x + t)
File "/tmp/tmpoi5dfo5f/tmpyl5n4g0t.py", line 1 n, k, x, y = int(input().split()) for _ in range(4) ^^^ SyntaxError: invalid syntax
s563442205
p04011
u674064321
1570304877
Python
Python (3.4.3)
py
Runtime Error
17
2940
107
n, k, x, y = int(input().split()) for _ in range(4) t = 0 if n - k > 0: t = (n - k) * y print(n * x + t)
File "/tmp/tmpdqwfwlf9/tmpg5cx3g69.py", line 1 n, k, x, y = int(input().split()) for _ in range(4) ^^^ SyntaxError: invalid syntax
s063652482
p04011
u674064321
1570304844
Python
Python (3.4.3)
py
Runtime Error
17
2940
107
n, k, x, y = int(input().split()) for _ in range(4) t = 0 if n - k > 0: t = (n - k) * y print(k * x + t)
File "/tmp/tmp2prz2o32/tmpskwo7h20.py", line 1 n, k, x, y = int(input().split()) for _ in range(4) ^^^ SyntaxError: invalid syntax
s273869019
p04011
u674064321
1570304762
Python
Python (3.4.3)
py
Runtime Error
17
2940
78
n, k, x, y = int(input().split()) for _ in range(4) print(k * x + (k - n) * y)
File "/tmp/tmpzgb_sf_f/tmpo8ws2pi6.py", line 1 n, k, x, y = int(input().split()) for _ in range(4) ^^^ SyntaxError: invalid syntax
s096120419
p04011
u674064321
1570304687
Python
Python (3.4.3)
py
Runtime Error
17
2940
80
n, k, x, y = [int(input().split()) for _ in range(4)] print(k * x + (n - k) * y)
Traceback (most recent call last): File "/tmp/tmppgzg8coc/tmph6hez98h.py", line 1, in <module> n, k, x, y = [int(input().split()) for _ in range(4)] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/tmppgzg8coc/tmph6hez98h.py", line 1, in <listcomp> n, k, x, y = [int(input().split()) for _ in range(4)] ^^^^^^^ EOFError: EOF when reading a line
s452495559
p04011
u674064321
1570304655
Python
Python (3.4.3)
py
Runtime Error
17
2940
78
n, k, x, y = int(input().split()) for _ in range(4) print(k * x + (n - k) * y)
File "/tmp/tmp9qtflea3/tmpldwwrx3e.py", line 1 n, k, x, y = int(input().split()) for _ in range(4) ^^^ SyntaxError: invalid syntax
s857022694
p04011
u674064321
1570304575
Python
Python (3.4.3)
py
Runtime Error
17
2940
76
n, k, x, y = int(input.split()) for _ in range(4) print(k * x + (n - k) * y)
File "/tmp/tmp094prrqd/tmpd_9lw8px.py", line 1 n, k, x, y = int(input.split()) for _ in range(4) ^^^ SyntaxError: invalid syntax
s429094567
p04011
u628965061
1570076721
Python
Python (3.4.3)
py
Runtime Error
18
2940
76
n,k,x,y=map(int,input().split("\n")) print(x*n if n <= k else (x*k)+(n-k)*y)
Traceback (most recent call last): File "/tmp/tmp9h3ik_3e/tmp5safhbcm.py", line 1, in <module> n,k,x,y=map(int,input().split("\n")) ^^^^^^^ EOFError: EOF when reading a line
s069139770
p04011
u887152994
1569945913
Python
Python (3.4.3)
py
Runtime Error
17
2940
95
n,k,x,y = (int(iinput())for i in [0]*4) if k <= n: print(k*(x-y)+n*y) else: print(n*x)
Traceback (most recent call last): File "/tmp/tmp9bg7dczn/tmp3bgxpwpo.py", line 1, in <module> n,k,x,y = (int(iinput())for i in [0]*4) ^^^^^^^ File "/tmp/tmp9bg7dczn/tmp3bgxpwpo.py", line 1, in <genexpr> n,k,x,y = (int(iinput())for i in [0]*4) ^^^^^^ NameError: name 'iinput' is not defined. Did you mean: 'input'?
s494648336
p04011
u887152994
1569945829
Python
Python (3.4.3)
py
Runtime Error
18
2940
103
n = input() k = input() x = input() y = input() if k <= n: print(k*(x-y)+n*y) else: print(n*x)
Traceback (most recent call last): File "/tmp/tmpgi4bv2kn/tmpxxiop0fw.py", line 1, in <module> n = input() ^^^^^^^ EOFError: EOF when reading a line
s403034483
p04011
u887152994
1569945651
Python
Python (3.4.3)
py
Runtime Error
18
3188
89
n,k,x,y = map(int,input().split()) if k <= n: print(k*(x-y)+n*y) else: print(n*x)
Traceback (most recent call last): File "/tmp/tmpi12yad9p/tmpz7bthysd.py", line 1, in <module> n,k,x,y = map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s417945044
p04011
u887152994
1569945299
Python
Python (3.4.3)
py
Runtime Error
17
2940
66
n = input() k = input() x = input() y = input() print(k*(x-y)+n*y)
Traceback (most recent call last): File "/tmp/tmplmtz3rxj/tmpa8eq9vfb.py", line 1, in <module> n = input() ^^^^^^^ EOFError: EOF when reading a line
s420144467
p04011
u747602774
1569645335
Python
PyPy3 (2.4.0)
py
Runtime Error
166
38256
57
N,K,X,Y=map(int,input().split()) S=X*K+Y*(N-K) print(S)
Traceback (most recent call last): File "/tmp/tmpj_s6gb5k/tmpxxdjvz1j.py", line 1, in <module> N,K,X,Y=map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s904769533
p04011
u953753178
1569244276
Python
Python (3.4.3)
py
Runtime Error
17
2940
112
N, K, X, Y = map(int, input().split()) if N >= K: res = K * X + (N-K) * Y else: res = N * X print(res)
Traceback (most recent call last): File "/tmp/tmpnbaay_lb/tmpzy4ggbwm.py", line 1, in <module> N, K, X, Y = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s713311066
p04011
u953753178
1569243893
Python
Python (3.4.3)
py
Runtime Error
17
2940
117
N, K, X, Y = list(map(int, input().split())) if N >= K: res = K * X + (N-K) * Y else: res = N * X print(res)
Traceback (most recent call last): File "/tmp/tmp9p3eo1nz/tmp3ys74cfg.py", line 1, in <module> N, K, X, Y = list(map(int, input().split())) ^^^^^^^ EOFError: EOF when reading a line
s600578738
p04011
u707690642
1569082775
Python
Python (3.4.3)
py
Runtime Error
17
2940
156
input_ = input().split() N, K, X, Y = input_ acc = 0 if N > K: acc = int(K) * int(X) + int(N - K) * int(Y) else: acc = int(N) * int(X) print(acc)
Traceback (most recent call last): File "/tmp/tmpkn5se4yh/tmpmj2c4u7i.py", line 1, in <module> input_ = input().split() ^^^^^^^ EOFError: EOF when reading a line
s480928573
p04011
u385244248
1569060431
Python
Python (3.4.3)
py
Runtime Error
18
2940
59
N,K,X,Y = map(int,open(0).read().split()) print(X*K+Y(N-K))
Traceback (most recent call last): File "/tmp/tmpk_vdxpkj/tmpjipy134i.py", line 1, in <module> N,K,X,Y = map(int,open(0).read().split()) ^^^^^^^ ValueError: not enough values to unpack (expected 4, got 0)
s643766369
p04011
u694903396
1568504796
Python
Python (3.4.3)
py
Runtime Error
17
2940
124
N = input(int(N)) K = input(int(K)) X = input(int(X)) Y = input(int(Y)) if N>K: print(K*X+Y(N-K)) else: print(N*X)
Traceback (most recent call last): File "/tmp/tmp0svtk1t7/tmpxsp6ixvi.py", line 1, in <module> N = input(int(N)) ^ NameError: name 'N' is not defined
s674116540
p04011
u597455618
1567996368
Python
Python (3.4.3)
py
Runtime Error
17
2940
81
n, k, x, y = (input() for i in range(4)) print(min(n, k) * x + max(0, n - k) * y)
Traceback (most recent call last): File "/tmp/tmpt8f3w_uc/tmpp40t6qrj.py", line 1, in <module> n, k, x, y = (input() for i in range(4)) ^^^^^^^^^^ File "/tmp/tmpt8f3w_uc/tmpp40t6qrj.py", line 1, in <genexpr> n, k, x, y = (input() for i in range(4)) ^^^^^^^ EOFError: EOF when reading a line
s061524737
p04011
u931489673
1567921301
Python
Python (3.4.3)
py
Runtime Error
17
2940
169
days=int(input()) k=int(input()) yen_until_k=int(input()) yen_after_k=int(input()) if days <= k: print(days*yen_until_k) else: print(k*yen_until_k+(n-k)*yen_after_k)
Traceback (most recent call last): File "/tmp/tmpnmy5v4c7/tmpi53pjm5i.py", line 1, in <module> days=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s705109006
p04011
u474925961
1567826283
Python
Python (3.4.3)
py
Runtime Error
17
2940
155
import sys if sys.platform =='ios': sys.stdin=open('input_file.txt') for _ in range(4): N,K,X,Y=int(input()) print(N*X-(max((N-K),0)*(X-Y)))
Traceback (most recent call last): File "/tmp/tmpf8_56mgk/tmp84zuh_7h.py", line 7, in <module> N,K,X,Y=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s143958165
p04011
u474925961
1567826166
Python
Python (3.4.3)
py
Runtime Error
17
2940
173
import sys if sys.platform =='ios': sys.stdin=open('input_file.txt') N=int(input()) K=int(input()) X=int(input()) Y=int(input()) print(N*X-(max((N-K),0)*(X-Y))
File "/tmp/tmpgeq81jmk/tmpvbns2ppd.py", line 12 print(N*X-(max((N-K),0)*(X-Y)) ^ SyntaxError: '(' was never closed
s306429733
p04011
u474925961
1567826108
Python
Python (3.4.3)
py
Runtime Error
17
2940
153
import sys if sys.platform =='ios': sys.stdin=open('input_file.txt') for _ in range(4): N,K,X,Y=int(input()) print(N*X-(max((N-K),0)*(X-Y))
File "/tmp/tmpeu637fun/tmp67f3dbho.py", line 9 print(N*X-(max((N-K),0)*(X-Y)) ^ SyntaxError: '(' was never closed
s421907174
p04011
u882370611
1566672325
Python
Python (3.4.3)
py
Runtime Error
17
2940
68
n,k,x,y = list(map(int,input().split())) print(n*x+(y-x)*max(n-k,0))
Traceback (most recent call last): File "/tmp/tmp7i_h5loo/tmpjxsr9glv.py", line 1, in <module> n,k,x,y = list(map(int,input().split())) ^^^^^^^ EOFError: EOF when reading a line
s471201259
p04011
u717626627
1566521779
Python
Python (3.4.3)
py
Runtime Error
17
2940
130
n = int(input()) k = int(input()) x = int(input()) y = int(input()) if n - k >= 0: print(k * x + (n-k) * y) else print(k * x)
File "/tmp/tmphovlkdtv/tmpgvxil057.py", line 8 else ^ SyntaxError: expected ':'
s048081344
p04011
u832058515
1566438092
Python
Python (3.4.3)
py
Runtime Error
17
2940
339
stay = int(input()) plan_change_day =int(input()) high_price=int(input()) low_price=int(input()) def main(): if stay - plan_change_day > 0: cost = high_price * plan_change_day + low_price * (stay - plan_change_day) print(int(cost)) else: cost = high_price * plan_change_day print(int(cost)) main()
File "/tmp/tmpieqxebdu/tmpoh1_kk3v.py", line 9 print(int(cost)) TabError: inconsistent use of tabs and spaces in indentation
s346734609
p04011
u832058515
1566437649
Python
Python (3.4.3)
py
Runtime Error
17
2940
201
stay = int(input()) plan_change_day =int(input()) high_price=input() low_price=input() def main(): cost = high_price * plan_change_day + low_price * (stay - plan_change_day) print(cost) main()
File "/tmp/tmpxsevb4l8/tmp6g5bgisv.py", line 10 main() ^ IndentationError: unindent does not match any outer indentation level
s182579769
p04011
u665367149
1566356479
Python
Python (3.4.3)
py
Runtime Error
18
2940
79
n, k, x, y = map(int, input().split()) print(x*n if n<=k else (k*x)+((n-k)*y))
Traceback (most recent call last): File "/tmp/tmp_kp2p8xz/tmpkd_21_c5.py", line 1, in <module> n, k, x, y = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s942960259
p04011
u665367149
1566356291
Python
Python (3.4.3)
py
Runtime Error
17
3060
108
n, k, x, y = map(int, input().split()) sol = x * k + (n - k) * y if n - k < 0: sol = x * k print(sol)
Traceback (most recent call last): File "/tmp/tmpt_y7o_xf/tmpkpf7gh4h.py", line 1, in <module> n, k, x, y = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s827845794
p04011
u665367149
1566355698
Python
Python (3.4.3)
py
Runtime Error
17
2940
66
n, k, x, y = map(int, input().split()) print(x * k + y * (n - k))
Traceback (most recent call last): File "/tmp/tmpqu3rhxr4/tmp0wi6nqd4.py", line 1, in <module> n, k, x, y = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s639413660
p04011
u665367149
1566355662
Python
Python (3.4.3)
py
Runtime Error
24
2940
60
n, k, x, y = map(int, input().split()) print(x*k + y*(n-k))
Traceback (most recent call last): File "/tmp/tmpo0y6p1av/tmpiqzi74_x.py", line 1, in <module> n, k, x, y = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s746801980
p04011
u275861030
1566112917
Python
Python (3.4.3)
py
Runtime Error
17
2940
189
N = int(input()) #5 K = int(input()) #3 X = int(input()) Y = int(input()) total = 0 for a in range(1, N+1): #6 , 1, 2, 3, 4, 5 if a < K: total += X else: total += Y print(total)
File "/tmp/tmp5z8iq5n1/tmpiks7upj5.py", line 10 else: ^ IndentationError: unindent does not match any outer indentation level
s422039626
p04011
u275861030
1566112880
Python
Python (3.4.3)
py
Runtime Error
17
2940
197
N = int(input()) #5 K = int(input()) #3 X = int(input()) Y = int(input()) total = 0 for a in range(1, N+1): #6 , 1, 2, 3, 4, 5 if a < K: total += X else: total += Y print(total)
File "/tmp/tmp9zle6uz2/tmptvxmi000.py", line 9 total += X ^ IndentationError: unindent does not match any outer indentation level
s532618144
p04011
u275861030
1566112823
Python
Python (3.4.3)
py
Runtime Error
17
2940
196
N = int(input()) #5 K = int(input()) #3 X = int(input()) Y = int(input()) total = 0 for a in range(1, 6): #6 , 1, 2, 3, 4, 5 if a <= K: total += X else: total += Y print(total)
File "/tmp/tmpjdvfz9ld/tmp7fh2dc1h.py", line 9 total += X ^ IndentationError: unindent does not match any outer indentation level
s292361410
p04011
u275861030
1566112790
Python
Python (3.4.3)
py
Runtime Error
17
2940
194
N = int(input()) #5 K = int(input()) #3 X = int(input()) Y = int(input()) total = 0 for a in range(1, 6): #6 , 1, 2, 3, 4, 5 if a < K: total += X else: total += Y print(total)
File "/tmp/tmph7289uj5/tmpip6t4vxv.py", line 9 total += X ^ IndentationError: unindent does not match any outer indentation level
s744687558
p04011
u256464928
1565889970
Python
Python (3.4.3)
py
Runtime Error
17
2940
79
n,k,x,y = [int(split()) for _ in range(4)] print(k*x+(n-k)*y if n>=k else k*x)
Traceback (most recent call last): File "/tmp/tmp74lkr47a/tmpl36aax86.py", line 1, in <module> n,k,x,y = [int(split()) for _ in range(4)] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/tmp74lkr47a/tmpl36aax86.py", line 1, in <listcomp> n,k,x,y = [int(split()) for _ in range(4)] ^^^^^ NameError: name 'split' is not defined
s824892238
p04011
u256464928
1565889914
Python
Python (3.4.3)
py
Runtime Error
17
2940
79
n,k,x,y = [int().split() for _ in range(4)] print(k*x+(n-k)*y if n>=k else k*x)
Traceback (most recent call last): File "/tmp/tmpjcbj4dc0/tmpsqtkjern.py", line 1, in <module> n,k,x,y = [int().split() for _ in range(4)] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/tmpjcbj4dc0/tmpsqtkjern.py", line 1, in <listcomp> n,k,x,y = [int().split() for _ in range(4)] ^^^^^^^^^^^ AttributeError: 'int' object has no attribute 'split'