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
s338498614
p04011
u003505857
1598365167
Python
Python (3.8.2)
py
Runtime Error
24
9056
406
N, K, X, Y, = map(int, input().split()) # 高橋くんの宿泊数 N # 宿泊費が変わる  K # 初期宿泊費 X # K+1以降の宿泊費 Y # subは宿泊数の超過分 sub = N - K # もしNよりKが大きい場合、そのまま計算する if N <= K: answer = N * X print(answer) # KよりNが大きい場合 K * X + (N - K) * Y else: answer = K * X + sub * Y print(answer)
Traceback (most recent call last): File "/tmp/tmpjmc5wu5q/tmpfab_lidz.py", line 1, in <module> N, K, X, Y, = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s992276577
p04011
u003505857
1598365052
Python
Python (3.8.2)
py
Runtime Error
24
9068
410
N, K, X, Y, = map(int, input().split()) # 高橋くんの宿泊数 N # 宿泊費が変わる  K # 初期宿泊費 X # K+1以降の宿泊費 Y # subは宿泊数の超過分 sub = N - K # もしNよりKが大きい場合、そのまま計算する if N < K: answer = N * X print(answer) # KよりNが大きい場合 K * X + (N - K) * Y elif K < N: answer = K * X + sub * Y print(answer)
Traceback (most recent call last): File "/tmp/tmpcawlwok5/tmp1_dbyfz9.py", line 1, in <module> N, K, X, Y, = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s415437557
p04011
u003505857
1598364876
Python
Python (3.8.2)
py
Runtime Error
29
9152
391
N, K, X, Y, = map(int, input().split()) # 高橋くんの宿泊数 N # 宿泊費が変わる  K # 初期宿泊費 X # K+1以降の宿泊費 Y # wは宿泊数の超過分 sub = N - K # もしNよりKが大きい場合、そのまま計算する if N < K : answer = N * X print(answer) # KよりNが大きい場合 elif K < N: answer = K * X + Y * sub print(answer)
Traceback (most recent call last): File "/tmp/tmpinc7wpgx/tmpzt4lf8rc.py", line 1, in <module> N, K, X, Y, = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s263342084
p04011
u003505857
1598364301
Python
Python (3.8.2)
py
Runtime Error
24
9080
548
N, K, X, Y, = map(int, input().split()) answer = 0 w = 0 # 高橋くんの宿泊数 N # 宿泊費が変わる  K # 初期宿泊費 X # K+1以降の宿泊費 Y # wは宿泊数の超過分 if N - K >= 1: w = N - K else: w = 0 # もしNよりKが大きい場合、そのまま計算する # if N < K : for i in range(N): answer = answer + X print(answer) # KよりNが大きい場合 elif K < N: for i in range(K): answer = answer + X for i in range(w): answer = answer + Y print(answer)
Traceback (most recent call last): File "/tmp/tmpfi7u93bk/tmp9dseb4_9.py", line 1, in <module> N, K, X, Y, = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s049448303
p04011
u596536048
1598291239
Python
Python (3.8.2)
py
Runtime Error
21
9160
283
total_stay = int(input()) normal_stay = int(input()) normal_cost = int(input()) discounted_cost = int(input()) if total_stay <= normal_stay: total_cost = total_stay * normal_cost else: total_cost = normal_stay * normal_cost + (total_stay - normal_stay) * discounted_cost print(P)
Traceback (most recent call last): File "/tmp/tmpq151g587/tmpil8f67gg.py", line 1, in <module> total_stay = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s880676775
p04011
u244836567
1598239514
Python
Python (3.8.2)
py
Runtime Error
28
8960
86
a=int(input()) b=int(input()) c=int(input()) d=int(input()) print(int((c*(b-a)+d*(b)))
File "/tmp/tmpdhkw5lqd/tmpejmp2ohq.py", line 5 print(int((c*(b-a)+d*(b))) ^ SyntaxError: '(' was never closed
s654250762
p04011
u271176141
1598229884
Python
Python (3.8.2)
py
Runtime Error
25
9056
335
# 一泊X円、N(泊数)がK泊より多ければその分だけ一泊Y円 N,K,X,Y = map(int,input().split()) # K泊より多い場合はその分だけ単価Y円を掛ける if N > K: total_price = K * X + (N - K) * Y # K泊より少ない場合は泊数に単価X円を掛ける else: total_price = N * X print(total_price)
Traceback (most recent call last): File "/tmp/tmpem3_qsf0/tmpp7kc19gn.py", line 2, in <module> N,K,X,Y = map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s067773838
p04011
u271176141
1598229593
Python
Python (3.8.2)
py
Runtime Error
24
9092
335
# 一泊X円、N(泊数)がK泊より多ければその分だけ一泊Y円 N,K,X,Y = map(int,input().split()) # K泊より多い場合はその分だけ単価Y円を掛ける if N >= K: total_price = K * X + (N - K) * Y # K泊より少ない場合は泊数に単価X円を掛ける else: total_price = N * X print(total_price)
Traceback (most recent call last): File "/tmp/tmpenho5ega/tmp0z0004x4.py", line 2, in <module> N,K,X,Y = map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s303805495
p04011
u620846115
1598034059
Python
Python (3.8.2)
py
Runtime Error
31
9024
61
N,K,X,Y=input().split() print((K*X+(N-K)*Y) if N>=K else N*X)
Traceback (most recent call last): File "/tmp/tmp8vnjyii1/tmp64bso56g.py", line 1, in <module> N,K,X,Y=input().split() ^^^^^^^ EOFError: EOF when reading a line
s652850302
p04011
u779830746
1597975923
Python
Python (3.8.2)
py
Runtime Error
24
9112
171
# 入力 n, k, x, y = map(int, input().split()) # 処理 first_stay = k * x second_stay = (n - k) * y total_price = first_stay + second_stay # 出力 print(total_price)
Traceback (most recent call last): File "/tmp/tmpk5emzvtv/tmp537exl8_.py", line 2, in <module> n, k, x, y = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s194170146
p04011
u779830746
1597975905
Python
Python (3.8.2)
py
Runtime Error
23
9124
171
# 入力 n, k, x, y = map(int, input().split()) # 処理 first_stay = k * x second_stay = (n - k) * y total_price = first_stay + second_stay # 出力 print(total_price)
Traceback (most recent call last): File "/tmp/tmpl2v4muth/tmpp6fv5u7o.py", line 2, in <module> n, k, x, y = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s781359504
p04011
u051237313
1597811529
Python
Python (3.8.2)
py
Runtime Error
24
9092
72
n, k, x, y = map(int, input().split()) print(int(k * x + y * (n - k)))
Traceback (most recent call last): File "/tmp/tmp2afdmki_/tmppbx44wiw.py", line 1, in <module> n, k, x, y = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s120316041
p04011
u468972478
1597508222
Python
Python (3.8.2)
py
Runtime Error
23
9096
99
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/tmpqwrywob_/tmpxxuo4kc6.py", line 1, in <module> n, k, x, y = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s103116489
p04011
u193264896
1597150997
Python
Python (3.8.2)
py
Runtime Error
32
9040
383
import sys read = sys.stdin.read readline = sys.stdin.buffer.readline sys.setrecursionlimit(10 ** 8) INF = float('inf') MOD = 10 ** 9 + 7 def main(): N = int(readline()) K = int(readline()) X = int(readline()) Y = int(readline()) if N <= K: ans = X * N else: ans = X * k + Y * (N - K) print(ans) if __name__ == '__main__': main()
Traceback (most recent call last): File "/tmp/tmpeytz2mh9/tmpdr0994in.py", line 23, in <module> main() File "/tmp/tmpeytz2mh9/tmpdr0994in.py", line 11, in main N = int(readline()) ^^^^^^^^^^^^^^^ ValueError: invalid literal for int() with base 10: b''
s252876991
p04011
u193264896
1597150978
Python
Python (3.8.2)
py
Runtime Error
27
9180
374
import sys read = sys.stdin.read readline = sys.stdin.buffer.readline sys.setrecursionlimit(10 ** 8) INF = float('inf') MOD = 10 ** 9 + 7 def main(): N = int(readline()) K = int(readline()) X = int(readline()) Y = int(readline()) if N<=K: ans = X*N else: ans += X*k + Y*(N-K) print(ans) if __name__ == '__main__': main()
Traceback (most recent call last): File "/tmp/tmpl8vw411o/tmp71pwca0q.py", line 23, in <module> main() File "/tmp/tmpl8vw411o/tmp71pwca0q.py", line 11, in main N = int(readline()) ^^^^^^^^^^^^^^^ ValueError: invalid literal for int() with base 10: b''
s775644436
p04011
u265118937
1597111593
Python
Python (3.8.2)
py
Runtime Error
26
9020
118
n=int(input()) k=int(input()) x=int(input()) y=int(input()) if k <= n: ans += k*x + (n -k)*y else: ans += x*n
Traceback (most recent call last): File "/tmp/tmpyq526wmb/tmplwrobvsb.py", line 1, in <module> n=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s185561970
p04011
u226779434
1596620498
Python
Python (3.8.2)
py
Runtime Error
21
8924
77
n,k,x,y = [int(input) for i in range(4)] print(min(n,k) * x + max(n-k,0) * y)
Traceback (most recent call last): File "/tmp/tmpn68skrpx/tmpn5ue15ec.py", line 1, in <module> n,k,x,y = [int(input) for i in range(4)] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/tmpn68skrpx/tmpn5ue15ec.py", line 1, in <listcomp> 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 'builtin_function_or_method'
s508346532
p04011
u226779434
1596620077
Python
Python (3.8.2)
py
Runtime Error
20
9132
111
n = int(input()) k,x,y = [int(input()) for i in range(n)] print(k * x + (n - k) * y) if n > k else print(k * x)
Traceback (most recent call last): File "/tmp/tmpleoroxnz/tmp3s7jo4mx.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s097816758
p04011
u714104087
1596571895
Python
PyPy3 (7.3.0)
py
Runtime Error
86
68664
105
n = int(input()) k = int(input()) x = int(input()) y = int(input()) print(x*n if n=<k else k*x+(n-k)*y)
File "/tmp/tmpqyn8xokw/tmprl1b5qz0.py", line 6 print(x*n if n=<k else k*x+(n-k)*y) ^^^^^^^^ SyntaxError: expected 'else' after 'if' expression
s986356329
p04011
u099212858
1595941941
Python
Python (3.8.2)
py
Runtime Error
24
9120
99
input = list(map(int,input().split())) print(int(input[1]*input[2] + (input[0]-input[1])*input[3]))
Traceback (most recent call last): File "/tmp/tmpgcu7u8zq/tmpp02bp4fw.py", line 1, in <module> input = list(map(int,input().split())) ^^^^^^^ EOFError: EOF when reading a line
s818758759
p04011
u045793300
1595685935
Python
Python (3.8.2)
py
Runtime Error
27
9004
101
n, k, x, y = map(int(input()) for i in range(4)) if k <= n: print(k*x) else: print(k*x + (n-k)*y)
Traceback (most recent call last): File "/tmp/tmpmcg173w5/tmpgkne3j5c.py", line 1, in <module> n, k, x, y = map(int(input()) for i in range(4)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: map() must have at least two arguments.
s216829192
p04011
u045793300
1595685724
Python
Python (3.8.2)
py
Runtime Error
21
9188
91
n, k, x, y = map(int, input().split()) if k <= n: print(k*x) else: print(k*x + (n-k)*y)
Traceback (most recent call last): File "/tmp/tmpf7o7cwcs/tmp9yn0zz6i.py", line 1, in <module> n, k, x, y = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s945478557
p04011
u045793300
1595685470
Python
Python (3.8.2)
py
Runtime Error
26
9100
91
n, k, x, y = map(int, input().split()) if k >= n: print(k*x) else: print(k*x + (n-k)*y)
Traceback (most recent call last): File "/tmp/tmpvm_w8uc7/tmp4kge4mz3.py", line 1, in <module> n, k, x, y = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s739759434
p04011
u767797498
1595383855
Python
Python (3.8.2)
py
Runtime Error
27
9076
126
import sys n,k,x,y = map(int,sys.stdio.read().split()) high=n-k ans=0 if high > 0: ans=x*k+high*y else: ans=n*x print(ans)
Traceback (most recent call last): File "/tmp/tmpqe8g1m8x/tmprax7uq9v.py", line 2, in <module> n,k,x,y = map(int,sys.stdio.read().split()) ^^^^^^^^^ AttributeError: module 'sys' has no attribute 'stdio'. Did you mean: 'stdin'?
s581246296
p04011
u477696265
1595122494
Python
Python (3.8.2)
py
Runtime Error
33
9096
63
ab, bc, ca = map(int, input().rstrip().split()) print(ab*bc//2)
Traceback (most recent call last): File "/tmp/tmp1x1m80vf/tmpmszjm7gx.py", line 1, in <module> ab, bc, ca = map(int, input().rstrip().split()) ^^^^^^^ EOFError: EOF when reading a line
s649393322
p04011
u477696265
1595122190
Python
Python (3.8.2)
py
Runtime Error
27
9100
63
ab, bc, ca = map(int, input().rstrip().split()) print(ab*bc//2)
Traceback (most recent call last): File "/tmp/tmp6v3f3uuh/tmp32bp0iys.py", line 1, in <module> ab, bc, ca = map(int, input().rstrip().split()) ^^^^^^^ EOFError: EOF when reading a line
s057367398
p04011
u684743124
1594244794
Python
Python (3.8.2)
py
Runtime Error
23
8992
113
n=int(input()) k=int(input()) x=int(input()) y=int(input()) if n=<k: ans=n*x else: ans=k*x+y*(n-k) print(ans)
File "/tmp/tmpizhe45ca/tmpvscqda5w.py", line 5 if n=<k: ^ SyntaxError: invalid syntax
s396922470
p04011
u807807253
1593439062
Python
Python (3.8.2)
py
Runtime Error
26
8992
158
n = int(input()) k = int(input()) x = int(input()) y = int(input()) sum = 0 if (n >= k): sum = k*x + (n - k)*y print(sum) else: sum = n*x print(sum)
File "/tmp/tmpgfo97xqh/tmpr32a1df9.py", line 8 print(sum) ^ IndentationError: unindent does not match any outer indentation level
s242296202
p04011
u807807253
1593438668
Python
Python (3.8.2)
py
Runtime Error
25
8960
156
n = int(input()) k = int(input()) x = int(input()) y = int(input()) sum = 0 if n >= k: sum = k*x + (n - k)*y print(sum) else: sum = n*x print(sum)
File "/tmp/tmp0du6qdd7/tmpa66ubauy.py", line 8 print(sum) ^ IndentationError: unindent does not match any outer indentation level
s286418323
p04011
u807807253
1593438597
Python
Python (3.8.2)
py
Runtime Error
24
8960
158
n = int(input()) k = int(input()) x = int(input()) y = int(input()) sum = 0 if (n >= k): sum = k*x + (n - k)*y print(sum) else: sum = n*x print(sum)
File "/tmp/tmpdn49hr1c/tmpmj8pm27c.py", line 8 print(sum) ^ IndentationError: unindent does not match any outer indentation level
s313851401
p04011
u697615293
1593284725
Python
Python (3.8.2)
py
Runtime Error
25
8752
161
a = int(input()) b = int(input()) c = int(input()) d = int(input()) e = 0 for i in range(1,a+1): if i >= b+1: e += d else: e += c print(e)
File "/tmp/tmp7midi_ch/tmpu1a77mxd.py", line 10 else: ^^^^ SyntaxError: invalid syntax
s816456071
p04011
u197237612
1592544564
Python
Python (3.8.2)
py
Runtime Error
27
9032
70
n, k, x, y = map(int, [input for i in range(4)]) print(x*k + y*(n-k))
Traceback (most recent call last): File "/tmp/tmpxh1ir5l3/tmpexh5yyx3.py", line 1, in <module> n, k, x, y = map(int, [input for i in range(4)]) ^^^^^^^^^^ TypeError: int() argument must be a string, a bytes-like object or a real number, not 'builtin_function_or_method'
s489351347
p04011
u822179469
1591670999
Python
Python (3.4.3)
py
Runtime Error
17
3060
291
import itertools n,a = map(int,input().split()) x = list(map(int, input().split())) cnt = 0 for i in range(n+1): for v in itertools.combinations(x,i+1): if sum(v) == a*(i+1): #組み合わせのカードの平均がaと等しいならば cnt = cnt + 1 print(cnt)
Traceback (most recent call last): File "/tmp/tmpak3_cad6/tmpc7anwkjo.py", line 3, in <module> n,a = map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s682708700
p04011
u685244071
1591373943
Python
Python (3.4.3)
py
Runtime Error
17
3060
177
n = int(input()) k = int(input()) x = int(input()) y = int(input()) f_normal = x * k f_addition = f_formal + (n - k) * y if n <= k: print(f_normal) else: print(f_addition)
Traceback (most recent call last): File "/tmp/tmp31jachb5/tmpyq8r1ffn.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s126424978
p04011
u187883751
1591157180
Python
Python (3.4.3)
py
Runtime Error
17
3064
90
n,k,x,y=map(int,input().split()) if k >= n: print(x*k) else: print((x*k)+(n-k)*y)
Traceback (most recent call last): File "/tmp/tmpziblgqr2/tmpilpubcqf.py", line 1, in <module> n,k,x,y=map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s285924430
p04011
u187883751
1591156758
Python
Python (3.4.3)
py
Runtime Error
17
2940
82
n,k,x,y=map(int,input()) if k >= n: print(x*k) else: print((x*k)+(n-k)*y)
Traceback (most recent call last): File "/tmp/tmpijut_e2h/tmpyy0fnpqz.py", line 1, in <module> n,k,x,y=map(int,input()) ^^^^^^^ EOFError: EOF when reading a line
s193762436
p04011
u187883751
1591156533
Python
Python (3.4.3)
py
Runtime Error
17
2940
78
n,k,x,y=int(input()) if k >= n: print(x*k) else: print((x*k)+(n-k)*y)
Traceback (most recent call last): File "/tmp/tmpxm563w2k/tmpaw0qk4ju.py", line 1, in <module> n,k,x,y=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s343711057
p04011
u187883751
1591156392
Python
Python (3.4.3)
py
Runtime Error
17
2940
84
n,k,x,y=int(input()) if k >= n: print(x*k) elif k < n: print((x*k)+(n-k)*y)
Traceback (most recent call last): File "/tmp/tmpytl02ta3/tmpsuxkwsg5.py", line 1, in <module> n,k,x,y=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s489141644
p04011
u187883751
1591156300
Python
Python (3.4.3)
py
Runtime Error
18
3188
79
n,k,x,y=input() if k >= n: print(x*k) elif k < n: print((x*k)+(n-k)*y)
Traceback (most recent call last): File "/tmp/tmpok5tbzy8/tmpu855z2ua.py", line 1, in <module> n,k,x,y=input() ^^^^^^^ EOFError: EOF when reading a line
s841565771
p04011
u941277791
1591153233
Python
Python (3.4.3)
py
Runtime Error
17
2940
177
hotel=int(input()) hotel2=int(input()) hotel3=int(input()) hotel4=int(input()) sum1=int(hotel)*int(hotel2) sum2=int(hotel39*int(hotel4) fee=int(sum1)+int(sum1) print(str(fee))
File "/tmp/tmpu91p6pd0/tmp9se2cyg5.py", line 7 sum2=int(hotel39*int(hotel4) ^ SyntaxError: '(' was never closed
s803414194
p04011
u883866798
1590680704
Python
Python (3.4.3)
py
Runtime Error
17
2940
209
N = int(input()) K = int(input()) price = int(input()) d_price = int(input()) if K >= N: total = N * prive print(total) else: total = K * price N -= K total += N * d_price print(total)
Traceback (most recent call last): File "/tmp/tmp32whpbva/tmpxcx5fp24.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s465260141
p04011
u552738814
1590457369
Python
Python (3.4.3)
py
Runtime Error
17
2940
180
n = int(input()) k = int(input()) x = int(input()) y = int(input()) price = 0 for i in range(1,n+1): if i < k+1: price += x elif: price += y print(price)
File "/tmp/tmp2c5wvwz_/tmpuf6nn945.py", line 11 elif: ^ SyntaxError: invalid syntax
s490156196
p04011
u594956556
1590451021
Python
Python (3.4.3)
py
Runtime Error
17
2940
101
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) print(min(K, N)*X + max(0, N-K)*Y
File "/tmp/tmp6caqp0q9/tmpkkmkqg1_.py", line 5 print(min(K, N)*X + max(0, N-K)*Y ^ SyntaxError: '(' was never closed
s544552459
p04011
u728611988
1589914797
Python
Python (3.4.3)
py
Runtime Error
17
2940
168
n = int(input()) k = int(input()) x = int(input()) y = int(input()) ans = 0 for i in range(1,n+1): if i =< k: ans += x else: ans += y print(ans)
File "/tmp/tmp8ev0dvia/tmp6derp53y.py", line 7 if i =< k: ^ SyntaxError: invalid syntax
s005188025
p04011
u728611988
1589914611
Python
Python (3.4.3)
py
Runtime Error
17
2940
166
n = int(input()) k = int(input()) x = int(input()) y = int(input()) ans = 0 for i in range(1:n): if i =< k: ans += x else: ans += y print(ans)
File "/tmp/tmpl5qx3kch/tmp6sh0cpt0.py", line 6 for i in range(1:n): ^ SyntaxError: invalid syntax
s284352443
p04011
u728611988
1589914517
Python
Python (3.4.3)
py
Runtime Error
17
2940
168
n = int(input()) k = int(input()) x = int(input()) y = int(input()) ans = 0 for i in range(1:n+1): if i =< k: ans += x else: ans += y print(ans)
File "/tmp/tmpi4bb6msm/tmpxnfmnv9y.py", line 6 for i in range(1:n+1): ^ SyntaxError: invalid syntax
s781383948
p04011
u728611988
1589914412
Python
Python (3.4.3)
py
Runtime Error
17
2940
166
n = int(input()) k = int(input()) x = int(input()) y = int(input()) ans = 0 for i in range(n+1): if i =< k: ans += x else: ans += y print(ans)
File "/tmp/tmpet9w9jfk/tmpksxmotw6.py", line 7 if i =< k: ^ SyntaxError: invalid syntax
s451458090
p04011
u039192119
1589748662
Python
Python (3.4.3)
py
Runtime Error
17
2940
106
n=int(input()) k=int(input()) x=int(input()) y=int(input()) if n>k: print(x*k+y*(n-k) else: print(x*n)
File "/tmp/tmpus2e7kvk/tmpxq0vzjid.py", line 6 print(x*k+y*(n-k) ^ SyntaxError: '(' was never closed
s760680495
p04011
u039192119
1589748628
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(x*k+y*(n-k) else: print(x*n)
File "/tmp/tmps850r1lq/tmpqi9dfuh4.py", line 6 print(x*k+y*(n-k) ^ SyntaxError: '(' was never closed
s745569468
p04011
u792512290
1588739853
Python
Python (3.4.3)
py
Runtime Error
17
2940
121
n=int(input()) k=int(input()) x=int(input()) y=int(input()) if n =< k: print(x * n) else: print(k * x + (n - x) * y)
File "/tmp/tmpkcnz9fy7/tmpcy7tyf32.py", line 6 if n =< k: ^ SyntaxError: invalid syntax
s342881130
p04011
u756420279
1588724495
Python
Python (3.4.3)
py
Runtime Error
17
2940
85
lis = [int(input()) for _ in range(3)] print(lis[1]*lis[2] + (lis[0]-lis[1])*lis[3])
Traceback (most recent call last): File "/tmp/tmp98a3uh9s/tmp3mo_u4dv.py", line 1, in <module> lis = [int(input()) for _ in range(3)] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/tmp98a3uh9s/tmp3mo_u4dv.py", line 1, in <listcomp> lis = [int(input()) for _ in range(3)] ^^^^^^^ EOFError: EOF when reading a line
s091307356
p04011
u629709614
1588620647
Python
Python (3.4.3)
py
Runtime Error
17
2940
135
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) if N<K: Sum = X*N elif N>K: Sum = X*K + Y*(N-K) print(Sum)
Traceback (most recent call last): File "/tmp/tmps_fl5if5/tmp3siqugw4.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s733237279
p04011
u199459731
1588052041
Python
Python (3.4.3)
py
Runtime Error
17
2940
235
stay = int(input()) change_day = int(input()) first_cost = int(input()) change_cost = int(input()) total_cost = 0 for i in range(stay): if(i < change_day): total_cost += first_cost else: total_cost += change_cost print(total_cost)
File "/tmp/tmpoicj4zvl/tmpk0utgxw6.py", line 9 total_cost += first_cost ^ IndentationError: expected an indented block after 'if' statement on line 8
s498957852
p04011
u816631826
1587748878
Python
Python (3.4.3)
py
Runtime Error
17
3060
139
n=int(input()) k=int(input()) x=int(input()) y=int(input()) s1=k*x d1=n-k s2=d1*y if(k>=n): s=x*n print(s) else: print(s1+S2)
Traceback (most recent call last): File "/tmp/tmp23osngkc/tmpmmzzfw8t.py", line 1, in <module> n=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s790795785
p04011
u141419468
1587490362
Python
Python (3.4.3)
py
Runtime Error
18
3060
219
N, K, X, Y = map(int, input().split()) AC=0 if N > K: for _ in range(K): AC += X for _ in range(N-K): AC += Y print(AC) else: for _ in range(K): AC += X print(AC)
Traceback (most recent call last): File "/tmp/tmp1fq_y821/tmp9dmtzdb7.py", line 1, in <module> N, K, X, Y = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s144946924
p04011
u752898745
1587002237
Python
Python (3.4.3)
py
Runtime Error
17
2940
172
def takahashi(n, k, x, y): if n > k: return (n-k+1)*x + (k-1)*y else: return n*x n,k,x,y = list(map(int, input().split())) takahashi(n,k,x,y)
Traceback (most recent call last): File "/tmp/tmpxgycgrky/tmpuuut59xa.py", line 9, in <module> n,k,x,y = list(map(int, input().split())) ^^^^^^^ EOFError: EOF when reading a line
s822788279
p04011
u652656291
1586829788
Python
Python (3.4.3)
py
Runtime Error
17
2940
116
n = int(input()) k = int(input()) x = int(input()) y = int(input()) if k >= n: print(k*x) else: print(k*x+(n-k)*y)
File "/tmp/tmp1h6xx6f9/tmpbhvk2yur.py", line 8 print(k*x+(n-k)*y) ^ IndentationError: expected an indented block after 'else' statement on line 7
s901523375
p04011
u485319545
1586223236
Python
PyPy3 (2.4.0)
py
Runtime Error
170
38256
312
N,A=map(int,input().split()) cards=list(map(int,input().split())) result=0 for i in range(2**N): list2 =[] for j in range(N): if (i >> j) &1 == 1: list2.append(cards[j]) if len(list2)!=0: ave =sum(list2)/len(list2) if ave==A: result+=1 print(result)
Traceback (most recent call last): File "/tmp/tmpsz2iemng/tmpdxqaq4w7.py", line 1, in <module> N,A=map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s009956277
p04011
u485319545
1586221567
Python
Python (3.4.3)
py
Runtime Error
17
2940
115
N=int(input()) K=int(input()) X=int(input()) Y=int(input()) if N>=k: print(X*K + Y*(K-N)) else: print(X*N)
Traceback (most recent call last): File "/tmp/tmpuxgyo4r3/tmpa7mwne2e.py", line 1, in <module> N=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s938309778
p04011
u772649753
1586205973
Python
Python (3.4.3)
py
Runtime Error
17
2940
78
n,k,x,y = map(int, input()) if n > k: print(k*x+(n-k)*y) else: print(n*x)
Traceback (most recent call last): File "/tmp/tmpagjr6ih7/tmpqt5so8_d.py", line 1, in <module> n,k,x,y = map(int, input()) ^^^^^^^ EOFError: EOF when reading a line
s351957820
p04011
u772649753
1586205927
Python
Python (3.4.3)
py
Runtime Error
17
2940
86
n,k,x,y = map(int, input()) if n > k: sum = k*x+(n-k)*y else: sum = n*x print(sum)
Traceback (most recent call last): File "/tmp/tmp7wd6md6o/tmpr_v82zko.py", line 1, in <module> n,k,x,y = map(int, input()) ^^^^^^^ EOFError: EOF when reading a line
s789370198
p04011
u772649753
1586205816
Python
Python (3.4.3)
py
Runtime Error
17
2940
91
n,k,x,y = map(int, input()) if n > k: sum = k*x+(n-k)*y else: sum = n*x print(int(sum))
Traceback (most recent call last): File "/tmp/tmp39od5xps/tmpeixet9vd.py", line 1, in <module> n,k,x,y = map(int, input()) ^^^^^^^ EOFError: EOF when reading a line
s366252806
p04011
u536836760
1586186913
Python
Python (3.4.3)
py
Runtime Error
18
3188
71
N,K,X,Y = map(int,input().split()) print(N) print(K) print(X) print(Y)
Traceback (most recent call last): File "/tmp/tmpcwtse4ph/tmpyt3qaa5l.py", line 1, in <module> N,K,X,Y = map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s128975444
p04011
u063346608
1585682745
Python
Python (3.4.3)
py
Runtime Error
17
2940
152
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) if K > N: answer = (K * X) + (N - K) * Y: else: answer = N * X print(answer)
File "/tmp/tmpvwscb2fr/tmprypwlslm.py", line 7 answer = (K * X) + (N - K) * Y: ^ SyntaxError: invalid syntax
s098443936
p04011
u063346608
1585682658
Python
Python (3.4.3)
py
Runtime Error
17
2940
158
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) if K <= N: answer = N * X elif K > N: answer = (K * X) + (N - K) * Y: print(answer)
File "/tmp/tmpfe1_jb3p/tmp24fdlgbg.py", line 9 answer = (K * X) + (N - K) * Y: ^ SyntaxError: invalid syntax
s052342236
p04011
u852790844
1585585466
Python
Python (3.4.3)
py
Runtime Error
17
2940
154
n = int(input()) K = int(input()) x = int(input()) y = int(input()) if n-k > 0: ans = x*k + y+(n-k) print(ans) else: ans = x*n print(ans)
Traceback (most recent call last): File "/tmp/tmpeypq2xt1/tmpmqu12ynb.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s417548555
p04011
u166822777
1585535848
Python
Python (3.4.3)
py
Runtime Error
17
2940
109
N = input() K = input() X = input() Y = input() if(N <= K): fee=N*X else: fee=X*K + Y*(N-K) print(fee)
Traceback (most recent call last): File "/tmp/tmp3b2iz5ml/tmp0c4rf3ov.py", line 1, in <module> N = input() ^^^^^^^ EOFError: EOF when reading a line
s584936908
p04011
u166822777
1585535604
Python
Python (3.4.3)
py
Runtime Error
17
2940
134
int N = input() int K = input() int X = input() int Y = input() int fee if(N <= K): fee=N*X else: fee=X*K + Y*(N-K) print(fee)
File "/tmp/tmpp49z0q89/tmpyepm20yk.py", line 1 int N = input() ^ SyntaxError: invalid syntax
s448240963
p04011
u372550522
1585153614
Python
Python (3.4.3)
py
Runtime Error
17
2940
135
var = [int(e) for e in input().split()] n = var[0] k = var[1] x = var[2] y = var[3] if n>k: print(k*x+(n-k)*y) else: print(n*x)
Traceback (most recent call last): File "/tmp/tmpoby_8esg/tmp2mi9fhp3.py", line 1, in <module> var = [int(e) for e in input().split()] ^^^^^^^ EOFError: EOF when reading a line
s167769482
p04011
u372550522
1585153548
Python
Python (3.4.3)
py
Runtime Error
17
2940
135
var = [int(e) for e in input().split()] n = var[0] k = var[1] x = var[2] y = var[3] if n>k: print(k*x+(n-k)*y) else: print(k*x)
Traceback (most recent call last): File "/tmp/tmpt5nal2zj/tmp8n5vetn8.py", line 1, in <module> var = [int(e) for e in input().split()] ^^^^^^^ EOFError: EOF when reading a line
s693966423
p04011
u580404776
1584745430
Python
Python (3.4.3)
py
Runtime Error
17
2940
118
N=int(input()) K=int(input()) X=int(input()) Y=int(input()) if N-K>0: print(K*X+(N-K)*ren*Y) else: print(N*X)
Traceback (most recent call last): File "/tmp/tmpwcuidun6/tmpgtzydscl.py", line 1, in <module> N=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s041143538
p04011
u016323272
1584396295
Python
Python (3.4.3)
py
Runtime Error
17
2940
168
#ABC044.A N,K,X,Y = map(int,input().split()) #N<=Kの時 if N <= K: total_1 = N*X print(total_1) #N>Kの時 else: total_2 = K*X + (N-K)*Y print(total_2)
Traceback (most recent call last): File "/tmp/tmpeyp169i9/tmp5z05j7b4.py", line 2, in <module> N,K,X,Y = map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s376065394
p04011
u977490411
1584327989
Python
Python (3.4.3)
py
Runtime Error
19
2940
158
s = input() counter = [0] * 26 for i in s: counter[ord(i)-97] += 1 flag = 'Yes' for i in counter: if (i % 2) == 1: flag = 'No' print(flag)
Traceback (most recent call last): File "/tmp/tmpe8it1jul/tmph5d37ux2.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s601837434
p04011
u586563885
1584134320
Python
Python (3.4.3)
py
Runtime Error
16
2940
79
n,k,x,y=int(input()) if n>=k: l=n-k print(k*x+l*y) else: print(n*x)
File "/tmp/tmpaw9hza11/tmpzw_kdkdx.py", line 4 print(k*x+l*y) ^ SyntaxError: invalid character '*' (U+FF0A)
s097805399
p04011
u586563885
1584134071
Python
Python (3.4.3)
py
Runtime Error
17
2940
87
N,K,X,Y=int(input()) if N>=K+1: print(int(K*X+(N-K)*Y)) else: print(int(N*X))
File "/tmp/tmpluqfpdu9/tmpcykiw7w0.py", line 3 print(int(K*X+(N-K)*Y)) ^ SyntaxError: invalid character '*' (U+FF0A)
s730523141
p04011
u163874353
1584101435
Python
Python (3.4.3)
py
Runtime Error
17
2940
128
n = int(input()) k = int(input()) x = int(input()) y = int(input()) if k < n : print(k * x + (n - k) * y) else: primt(n * x)
Traceback (most recent call last): File "/tmp/tmppuuydu0s/tmpdc3eqhkj.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s108564731
p04011
u021916304
1583993894
Python
Python (3.4.3)
py
Runtime Error
2067
702580
599
import math import sys sys.setrecursionlimit(10000000) n = int(input()) s = int(input()) up = math.sqrt(n) def colsum(num, base): if num < base: return num else: return num%base + colsum(num//base,base) #s = n(n<b) if s == n: print(n+1) exit() #sqrt(n)まで探索 for i in range(2,int(up)+1): if s == colsum(n,i): print(i) exit() #2桁しかあり得ない場合(sqrt(n)<b<n) for j in range(1,int(up)+1): if (n-s)%j == 0: b = (n-s)/j + 1 if s == colsum(n,b) and b > 1: print(i) exit() print(-1)
Traceback (most recent call last): File "/tmp/tmps26kky4g/tmpti599u5p.py", line 5, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s909725658
p04011
u061674046
1583863031
Python
Python (3.4.3)
py
Runtime Error
17
2940
87
n,k,x,y = [int(input()) in range(4)] if n-k<0: print(n*x) else: print(k*x+(n-k)*y)
Traceback (most recent call last): File "/tmp/tmp7cb00nhy/tmpqkhfg_4f.py", line 1, in <module> n,k,x,y = [int(input()) in range(4)] ^^^^^^^ EOFError: EOF when reading a line
s287041589
p04011
u075595666
1583829093
Python
Python (3.4.3)
py
Runtime Error
17
2940
141
n = list(input()) ans = 'Yes' for i in w: if int(w.count(i))%2 == 1: ans = 'No' break if int(w.count(i))%2 == 0: continue print(ans)
File "/tmp/tmpwdlpy8f6/tmpdyeihqcg.py", line 3 for i in w: IndentationError: unexpected indent
s508218912
p04011
u247366051
1583707218
Python
Python (2.7.6)
py
Runtime Error
10
2568
83
n,k,x,y=int(input()) if n <= k: print n * x else: print k * x + (n - k) * y
File "/tmp/tmp1uv5d8ru/tmpmegfwad6.py", line 3 print n * x ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s131693083
p04011
u556589653
1583530434
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/tmpm8_gtcc1/tmptehk7ktu.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s438572121
p04011
u263933075
1582854688
Python
Python (3.4.3)
py
Runtime Error
17
2940
98
n=input() k=input() x=input() y=input() if n<=k : print(n*x) elif n>k : print((n-k)*y+k*x)
Traceback (most recent call last): File "/tmp/tmpeuswokx7/tmpigqbyy_1.py", line 1, in <module> n=input() ^^^^^^^ EOFError: EOF when reading a line
s088383034
p04011
u263933075
1582854649
Python
Python (3.4.3)
py
Runtime Error
18
2940
98
n=input() k=input() x=input() y=input() if n<=k : print(n*x) elif n>k : print((n-k)*y+k*x)
Traceback (most recent call last): File "/tmp/tmp5jakxkh4/tmpnqmpxt_v.py", line 1, in <module> n=input() ^^^^^^^ EOFError: EOF when reading a line
s100405218
p04011
u476418095
1582854645
Python
Python (3.4.3)
py
Runtime Error
17
2940
98
n=input() k=input() x=input() y=input() if n<=k : print(n*x) elif n>k : print((n-k)*y+k*x)
Traceback (most recent call last): File "/tmp/tmpo4ifzp8w/tmpih4_h2tu.py", line 1, in <module> n=input() ^^^^^^^ EOFError: EOF when reading a line
s382110365
p04011
u723721005
1582854539
Python
Python (2.7.6)
py
Runtime Error
11
2568
75
n,k,x,y=input() if n<k+1 : print(n*x) elif n>k : print((n-k)*y+k*x)
Traceback (most recent call last): File "/tmp/tmp_6fvw0st/tmp4cy0cq2s.py", line 1, in <module> n,k,x,y=input() ^^^^^^^ EOFError: EOF when reading a line
s962718487
p04011
u723721005
1582854460
Python
Python (2.7.6)
py
Runtime Error
11
2568
99
n,k,x,y=int(input().strip().split(' ')) if n<k+1 : print(n*x) elif n>k : print((n-k)*y+k*x)
Traceback (most recent call last): File "/tmp/tmp4eddry96/tmpo1j6j0y8.py", line 1, in <module> n,k,x,y=int(input().strip().split(' ')) ^^^^^^^ EOFError: EOF when reading a line
s600556786
p04011
u723721005
1582854408
Python
Python (3.4.3)
py
Runtime Error
17
2940
99
n,k,x,y=int(input().strip().split(' ')) if n<k+1 : print(n*x) elif n>k : print((n-k)*y+k*x)
Traceback (most recent call last): File "/tmp/tmp2epm1f2t/tmpob1zdia0.py", line 1, in <module> n,k,x,y=int(input().strip().split(' ')) ^^^^^^^ EOFError: EOF when reading a line
s440541374
p04011
u476418095
1582843028
Python
Python (3.4.3)
py
Runtime Error
18
2940
98
n,k,x,y=int(input().strip().split(' ')) if n<=k : print(n*x) elif n>k : print((n-k)*y+k*x)
Traceback (most recent call last): File "/tmp/tmp9teebb6k/tmpjqbqejw6.py", line 1, in <module> n,k,x,y=int(input().strip().split(' ')) ^^^^^^^ EOFError: EOF when reading a line
s053820190
p04011
u797994565
1582328303
Python
PyPy3 (2.4.0)
py
Runtime Error
172
39152
616
N,A = map(int,input().split()) X = list(map(int,input().split())) ans = 0 def make_array(dims,fill): if len(dims) == 1: return [fill]*dims[0] ret = [] nxt = dims[1:] for i in range(dims[0]): ret.append(make_array(nxt,fill)) return ret S = sum(X)+1 dp = make_array([N+2,N+2,S],0) dp[0][0][0] = 1 for i in range(N): for j in range(N): for s in range(S-X[i]): dp[i+1][j+1][s+X[i]] += dp[i][j][s] dp[i+1][j][s] += dp[i][j][s] ans = 0 for j in range(1,N+1): for s in range(1,S+1): if j*A == s: ans += dp[-2][j][s] print(ans)
Traceback (most recent call last): File "/tmp/tmpnekryucj/tmp2hrz_vs5.py", line 1, in <module> N,A = map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s303098369
p04011
u123273712
1582191141
Python
Python (3.4.3)
py
Runtime Error
17
3060
163
s = list(map(int,input().split())) if s[0] <= s[1]: print(s[0]*s[2]) else: atamakin = s[1]*s[2] nokori = (s[0]-s[1])*s[3] print(atamakin + nokori)
Traceback (most recent call last): File "/tmp/tmplf95fpuf/tmpitdfcd09.py", line 1, in <module> s = list(map(int,input().split())) ^^^^^^^ EOFError: EOF when reading a line
s172233482
p04011
u123273712
1582190886
Python
Python (3.4.3)
py
Runtime Error
17
3060
163
s = list(map(int,input().split())) if s[0] <= s[1]: print(s[0]*s[2]) else: atamakin = s[1]*s[2] nokori = (s[0]-s[1])*s[3] print(atamakin + nokori)
Traceback (most recent call last): File "/tmp/tmpa6p1xxla/tmpgu_pb26v.py", line 1, in <module> s = list(map(int,input().split())) ^^^^^^^ EOFError: EOF when reading a line
s267982198
p04011
u123273712
1582190766
Python
Python (3.4.3)
py
Runtime Error
17
3060
162
s = list(map(int,input().split())) if s[0] < s[1]: print(s[0]*s[2]) else: atamakin = s[1]*s[2] nokori = (s[0]-s[1])*s[3] print(atamakin + nokori)
Traceback (most recent call last): File "/tmp/tmpmrnrrzn5/tmpi18gz8f4.py", line 1, in <module> s = list(map(int,input().split())) ^^^^^^^ EOFError: EOF when reading a line
s523599794
p04011
u904995051
1581835500
Python
Python (3.4.3)
py
Runtime Error
17
2940
82
a,b,c,d=[int(input()) for i in [0]*4] print(n,k,x,y=(int(input()) for i in [0]*4))
Traceback (most recent call last): File "/tmp/tmplgzci5nd/tmpmkhrhcv6.py", line 1, in <module> a,b,c,d=[int(input()) for i in [0]*4] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/tmplgzci5nd/tmpmkhrhcv6.py", line 1, in <listcomp> a,b,c,d=[int(input()) for i in [0]*4] ^^^^^^^ EOFError: EOF when reading a line
s114296226
p04011
u627803856
1581538630
Python
PyPy3 (2.4.0)
py
Runtime Error
176
38256
41
print(n*x) if n<k else print(k*x+(n-k)*y)
Traceback (most recent call last): File "/tmp/tmphu323s0o/tmp_uccmdu4.py", line 1, in <module> print(n*x) if n<k else print(k*x+(n-k)*y) ^ NameError: name 'n' is not defined
s597466145
p04011
u630027862
1581289757
Python
Python (3.4.3)
py
Runtime Error
17
2940
73
N, K, X, Y = map(int, input().split()) total = K*X + (N-K)*Y print(total)
Traceback (most recent call last): File "/tmp/tmp9dv93i_j/tmpo36lc2wu.py", line 1, in <module> N, K, X, Y = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s138688094
p04011
u628976407
1580942274
Python
Python (3.4.3)
py
Runtime Error
17
2940
106
N = input() K = input() before = input() after = input() result = K*before + (N-K)*after print(result)
Traceback (most recent call last): File "/tmp/tmpmwt4cqwq/tmpz86ivkbl.py", line 1, in <module> N = input() ^^^^^^^ EOFError: EOF when reading a line
s817963268
p04011
u628976407
1580942181
Python
Python (3.4.3)
py
Runtime Error
17
2940
105
N = input() K = input() befoer = input() after = input() result = K*befoer + (N-K)*after print(result)
Traceback (most recent call last): File "/tmp/tmpl7hmcmtn/tmpyaazl7bj.py", line 1, in <module> N = input() ^^^^^^^ EOFError: EOF when reading a line
s596685313
p04011
u779308281
1580871034
Python
Python (3.4.3)
py
Runtime Error
17
3060
276
want = int().input() due = int().input() start = int().input() over = int().input() e = want - due yen = 0 if e <= 0: for i in range(want): yen += start if e > 0: for i in range(due): yen += start for j in range(e): yen += over print(yen)
Traceback (most recent call last): File "/tmp/tmpgrko3991/tmpkvk51m07.py", line 1, in <module> want = int().input() ^^^^^^^^^^^ AttributeError: 'int' object has no attribute 'input'
s229576323
p04011
u779308281
1580870957
Python
Python (3.4.3)
py
Runtime Error
17
3060
275
want = input().int() due = input().int() start = input().int() over = input().int() e = want - due yen = 0 if e <= 0: for i in range(want): yen += start if e > 0: for i in range(due): yen += start for j in range(e): yen += over print(yen)
Traceback (most recent call last): File "/tmp/tmpeank7le4/tmp7u6rhkb3.py", line 1, in <module> want = input().int() ^^^^^^^ EOFError: EOF when reading a line
s149985794
p04011
u738265085
1580849660
Python
Python (3.4.3)
py
Runtime Error
17
2940
416
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; int lent2 = X*K + lent*Y; System.out.println(lent2); } } }
File "/tmp/tmp9v6hwosh/tmpu7hnjdu3.py", line 3 class Main{ ^ SyntaxError: invalid syntax