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
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); } } }
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))
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)
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)
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)
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)
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)
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)
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))
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))
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))
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))
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))
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)
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)
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)
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)
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)
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)
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)
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 )
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)
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)
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)
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)
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)
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)
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)
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())
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; }
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))
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))
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))
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))
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)
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)
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) + ()
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)
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)
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)
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
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)
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)
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)
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)
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)
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)
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))
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))
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)
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)
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())
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())
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)
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)
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)
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
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
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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))
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)
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)
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)
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)))
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))
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))
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))
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)
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()
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()
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))
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)
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))
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))
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)
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)
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)
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)
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)
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)