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
int64
0
100
memory
stringlengths
4
6
code_size
int64
15
14.7k
code
stringlengths
15
14.7k
problem_id
stringlengths
6
6
problem_description
stringlengths
358
9.83k
input
stringlengths
2
4.87k
output
stringclasses
807 values
__index_level_0__
int64
1.1k
1.22M
s811959601
p04011
u623516423
1572287643
Python
Python (3.4.3)
py
Accepted
17
2940
118
N=int(input()) K=int(input()) X=int(input()) Y=int(input()) if N>K: Total=X*K+(N-K)*Y else: Total=N*X print(Total)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,371
s847662990
p04011
u671446913
1572221063
Python
Python (3.4.3)
py
Accepted
19
3060
225
# 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)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,372
s396820737
p04011
u633000076
1572218503
Python
Python (3.4.3)
py
Accepted
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)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,373
s328635726
p04011
u203886313
1572185031
Python
Python (3.4.3)
py
Accepted
19
3064
258
n = int(input()); #泊まる日数 k = int(input()); #k泊まで x = int(input()); #k泊まで1泊の値段 y = int(input()); #k泊以降1泊の値段 ans = 0; for i in range(n): if((i+1) <= k): ans += x; else: ans += y; print(ans);
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,374
s288061518
p04011
u010090035
1572158907
Python
Python (3.4.3)
py
Accepted
17
3060
112
n=int(input()) k=int(input()) x=int(input()) y=int(input()) print(x*(k if n>=k else n) + y*(n-k if n>=k else 0))
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,375
s704612946
p04011
u814986259
1572062961
Python
Python (3.4.3)
py
Accepted
18
2940
92
N=int(input()) K=int(input()) X=int(input()) Y=int(input()) print(max(0,N-K)*Y + min(K,N)*X)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,376
s268448948
p04011
u368882459
1572044896
Python
Python (3.4.3)
py
Accepted
17
2940
97
N, K, X, Y = map(int, [input() for i in range(4)]) print(X * K + Y * (N - K) if N > K else X * N)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,377
s660304397
p04011
u254871849
1572036801
Python
Python (3.4.3)
py
Accepted
17
2940
121
n = int(input()) k = int(input()) x = int(input()) y = int(input()) ans = (k*x + (n-k)*y) if n >= k else n*x print(ans)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,378
s330065048
p04011
u348868667
1571968829
Python
Python (3.4.3)
py
Accepted
17
2940
122
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) if N <= K: print(X*N) else: print(X*K+Y*(N-K))
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,379
s006759877
p04011
u937351423
1571962617
Python
Python (3.4.3)
py
Accepted
17
2940
111
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) print(min(N, K) * X + max((N - K), 0) * Y)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,380
s666812340
p04011
u182765930
1571948635
Python
Python (3.4.3)
py
Accepted
17
2940
80
n, k, x, y = [int(input()) for _ in range(4)] print(min(n, k)*x + max(n-k, 0)*y)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,381
s299128608
p04011
u182765930
1571941051
Python
Python (3.4.3)
py
Accepted
17
2940
97
n=int(input()) k=int(input()) x=int(input()) y=int(input()) print(k*x+(n-k)*y if n-k>=0 else n*x)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,382
s843201655
p04011
u241159583
1571924995
Python
Python (3.4.3)
py
Accepted
17
2940
103
n, k, x, y = [int(input()) for _ in range(4)] if n > k: print(k * x + (n - k) * y) else: print(n*x)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,383
s996894962
p04011
u780354103
1571887925
Python
Python (3.4.3)
py
Accepted
18
3188
109
N,K,X,Y = map(int,open(0).read().split()) S = 0 if N < K: S = N * X else: S = K*X + (N-K)*Y print(S)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,384
s584418142
p04011
u912115033
1571795318
Python
Python (3.4.3)
py
Accepted
18
2940
122
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)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,385
s128630636
p04011
u842880209
1571776060
Python
Python (3.4.3)
py
Accepted
17
2940
115
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) print(X * K + Y * (N - K) if N > K else X * N)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,386
s903326188
p04011
u556589653
1571773260
Python
Python (3.4.3)
py
Accepted
17
2940
129
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) if N<=K: print(int(N*X)) else: print(int((K*X)+(N-K)*Y))
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,387
s908822518
p04011
u099300051
1571759009
Python
Python (3.4.3)
py
Accepted
19
2940
151
NKXY = list(map(int,[input() for i in range(4)])) ans=0 for i in range(NKXY[0]): if i <NKXY[1] : ans+=NKXY[2] else: ans+=NKXY[3] print(ans)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,388
s053033765
p04011
u744563031
1571730960
Python
Python (3.4.3)
py
Accepted
17
2940
104
N=int(input());K=int(input());X=int(input());Y=int(input());[print(K*X+(N-K)*Y) if N>=K else print(N*X)]
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,389
s056442071
p04011
u244203620
1571706163
Python
Python (3.4.3)
py
Accepted
17
2940
90
a=int(input()) b=int(input()) c=int(input()) d=int(input()) print(c*min(a,b)+d*max(0,a-b))
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,390
s307342640
p04011
u388904130
1571663921
Python
Python (3.4.3)
py
Accepted
19
3060
172
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)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,391
s460086121
p04011
u088552457
1571615512
Python
Python (3.4.3)
py
Accepted
19
3060
206
# -*- coding: utf-8 -*- import math n = int(input()) k = int(input()) x = int(input()) y = int(input()) total = 0 for i in range(n): price = x if i + 1 > k: price = y total += price print(total)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,392
s671962198
p04011
u196404530
1571546384
Python
Python (3.4.3)
py
Accepted
17
2940
90
n=int(input()) k=int(input()) x=int(input()) y=int(input()) print(min(n,k)*x+max(0,n-k)*y)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,393
s508370050
p04011
u606878291
1571538513
Python
Python (3.4.3)
py
Accepted
17
3060
282
def main(n, k, x, y): if n <= k: result = n * x else: result = k * x result += (n - k) * y return result if __name__ == '__main__': N = int(input()) K = int(input()) X = int(input()) Y = int(input()) print(main(N, K, X, Y))
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,394
s069751270
p04011
u506858457
1571499242
Python
Python (3.4.3)
py
Accepted
17
2940
99
N=int(input()) K=int(input()) X=int(input()) Y=int(input()) cost=N*X-(X-Y)*(max(N-K,0)) print(cost)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,395
s090314130
p04011
u045953894
1571378102
Python
Python (3.4.3)
py
Accepted
18
3060
193
N=int(input());K=int(input());X=int(input());Y=int(input()) s=0 if N >= K: for i in range(1,K+1): s+=X for i in range(K+1,N+1): s+=Y else: for i in range(1,N+1): s+=X print(s)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,396
s680090992
p04011
u045953894
1571354701
Python
Python (3.4.3)
py
Accepted
18
3060
212
N=int(input());K=int(input());X=int(input());Y=int(input()) a=0 if N >= K: for i in range(1,K+1): a+=X for i in range(K+1,N+1): a+=Y else: for i in range(1,N+1): a+=X print(a)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,397
s549478054
p04011
u225388820
1571287321
Python
Python (3.4.3)
py
Accepted
17
2940
111
n=int(input()) k=int(input()) x=int(input()) y=int(input()) if k<n: print(k*x+(n-k)*y) else: print(n*x)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,398
s990211242
p04011
u777283665
1571267131
Python
Python (3.4.3)
py
Accepted
17
2940
123
n = int(input()) k = int(input()) x = int(input()) y = int(input()) if n <= k: print(x*n) else: print(x*k+(n-k)*y)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,399
s261714592
p04011
u376099073
1571219045
Python
Python (3.4.3)
py
Accepted
17
2940
100
N,K,X,Y = [int(input()) for i in range(4)] if N <= K: print(N*X) else: print(K*X + (N-K)*Y)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,400
s422438584
p04011
u626468554
1571193906
Python
Python (3.4.3)
py
Accepted
19
3060
169
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)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,401
s136489877
p04011
u999893056
1571187354
Python
Python (3.4.3)
py
Accepted
17
2940
108
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) print(K*X +(N - K)*Y if N>=K else N*X)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,402
s078781415
p04011
u578049848
1571167238
Python
Python (3.4.3)
py
Accepted
17
3064
138
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)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,403
s795505239
p04011
u910756197
1571163420
Python
Python (3.4.3)
py
Accepted
17
2940
108
n = int(input()) k = int(input()) x = int(input()) y = int(input()) print(min(n, k) * x + max(0, n - k) * y)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,404
s245519159
p04011
u856957183
1571080249
Python
Python (3.4.3)
py
Accepted
17
3064
379
# coding: utf-8 # Your code here! syukuhaku_kei = int(input()) rennzoku = int(input()) tousyo = int(input()) rennpaku = int(input()) if syukuhaku_kei > rennzoku: first_sum = rennzoku*tousyo second_sum = (syukuhaku_kei - rennzoku) * rennpaku goukei = first_sum + second_sum print(str(goukei)) else...
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,405
s526662012
p04011
u203383537
1571026175
Python
Python (3.4.3)
py
Accepted
17
2940
114
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)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,406
s741222393
p04011
u231685196
1571019997
Python
Python (3.4.3)
py
Accepted
20
3060
166
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)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,407
s761732786
p04011
u281610856
1571004738
Python
Python (3.4.3)
py
Accepted
17
3064
146
n = int(input()) k = int(input()) x = int(input()) y = int(input()) if n - k > 0: sum = k * x + (n - k) * y else: sum = n * x print(sum)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,408
s786982647
p04011
u884657429
1570983699
Python
Python (3.4.3)
py
Accepted
17
2940
128
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)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,409
s923388442
p04011
u416223629
1570898150
Python
Python (3.4.3)
py
Accepted
17
2940
117
a = [int(input()) for i in range(4)] N=a[0] K=a[1] X=a[2] Y=a[3] if N<K: print(N*X) else: print(X*K+(N-K)*Y)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,410
s764117784
p04011
u768993705
1570895246
Python
Python (3.4.3)
py
Accepted
17
2940
75
n,k,x,y = [int(input()) for i in range(4)] print(min(k,n)*x + max(n-k,0)*y)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,411
s249063198
p04011
u654558363
1570843955
Python
Python (3.4.3)
py
Accepted
17
3064
195
if __name__ == "__main__": n = int(input()) k = int(input()) x = int(input()) y = int(input()) if n >= k: print(x * (k) + (n - k) * y) else: print(n * x)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,412
s947566427
p04011
u291766461
1570820775
Python
Python (3.4.3)
py
Accepted
17
2940
172
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) first_half = K * X if N - K > 0 else N * X rest = N - K if N - K > 0 else 0 print(first_half + rest * Y)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,413
s623016615
p04011
u823458368
1570818531
Python
Python (3.4.3)
py
Accepted
17
2940
124
n = int(input()) k = int(input()) x = int(input()) y = int(input()) if n > k: print(x*k + (n-k)*y) else: print(x*n)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,414
s319392113
p04011
u351914601
1570675898
Python
Python (3.4.3)
py
Accepted
17
2940
143
n = int(input()) k = int(input()) x = int(input()) y = int(input()) if (n > k): fee = x * k + y * (n - k) else: fee = x * n print(fee)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,415
s603741479
p04011
u391059484
1570674037
Python
Python (3.4.3)
py
Accepted
17
2940
126
N,K,X,Y = [int(input()) for i in range(4)] if N > K: fee = K*X + Y * (N - K) print(fee) else: fee = N*X print(fee)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,416
s652934091
p04011
u628965061
1570672554
Python
Python (3.4.3)
py
Accepted
17
3060
108
n=int(input()) k=int(input()) x=int(input()) y=int(input()) a=n*x b=k*x + y*(n-k) print(a if k >= n else b )
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,417
s378777273
p04011
u615817983
1570615861
Python
Python (3.4.3)
py
Accepted
17
2940
80
N, K, X, Y = [int(input()) for i in range(4)] if K > N: K = N print(X*K+(N-K)*Y)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,418
s958303276
p04011
u727787724
1570509440
Python
Python (3.4.3)
py
Accepted
17
2940
108
n=int(input()) k=int(input()) x=int(input()) y=int(input()) if k<=n: print(x*k+y*(n-k)) else: print(x*n)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,419
s618416234
p04011
u408791346
1570491945
Python
Python (3.4.3)
py
Accepted
17
2940
122
n = int(input()) k = int(input()) x = int(input()) y = int(input()) if n > k: print(x*k+(n-k)*y) else: print(x*n)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,420
s001225275
p04011
u396495667
1570483135
Python
Python (3.4.3)
py
Accepted
17
2940
136
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) if N > K: M = N-K print(K*X+M*Y) elif K >= N: print(N*X)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,421
s733328631
p04011
u614875193
1570475289
Python
Python (3.4.3)
py
Accepted
17
2940
55
N,K,X,Y=map(int,open(0));print(min(N,K)*X+max(0,N-K)*Y)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,422
s103249547
p04011
u396553339
1570426365
Python
Python (3.4.3)
py
Accepted
17
2940
136
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)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,423
s530421497
p04011
u448655578
1570425449
Python
Python (3.4.3)
py
Accepted
17
2940
124
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)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,424
s931652999
p04011
u033627628
1570399135
Python
Python (3.4.3)
py
Accepted
17
2940
72
n,k,x,y=[int(input()) for i in range(4)] print(x*min(k,n)+max(0,n-k)*y)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,425
s208112958
p04011
u891635666
1570388646
Python
Python (3.4.3)
py
Accepted
17
2940
132
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)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,426
s216233492
p04011
u674064321
1570310393
Python
Python (3.4.3)
py
Accepted
17
2940
114
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)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,427
s446461041
p04011
u674064321
1570305696
Python
Python (3.4.3)
py
Accepted
17
2940
113
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)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,428
s559645383
p04011
u403986473
1570240127
Python
Python (3.4.3)
py
Accepted
17
2940
124
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)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,429
s048802263
p04011
u287431190
1570219093
Python
Python (3.4.3)
py
Accepted
17
2940
107
n = int(input()) k = int(input()) x = int(input()) y = int(input()) s = x*min(k,n) + y*max(0,n-k) print(s)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,430
s179419554
p04011
u339537294
1570213559
Python
Python (3.4.3)
py
Accepted
23
3060
179
import sys s=[input() for i in range(4)] sum=0 for N in range(1,int(s[0])+1): if N < int(s[1])+1: sum += int(s[2]) else: sum += int(s[3]) print(sum)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,431
s395891127
p04011
u048956777
1570213005
Python
Python (3.4.3)
py
Accepted
17
2940
123
n = int(input()) k = int(input()) x = int(input()) y = int(input()) if n > k: print(x*k + (n-k)*y) else: print(n*x)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,432
s535381435
p04011
u553070631
1570078024
Python
Python (3.4.3)
py
Accepted
17
2940
122
n=int(input()) k=int(input()) x=int(input()) y=int(input()) if n<=k: money=n*x else: money=(k*x)+(n-k)*y print(money)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,433
s519597401
p04011
u945181840
1570058182
Python
Python (3.4.3)
py
Accepted
17
2940
134
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) if N <= K: print(N * X) else: print(X * K + (N - K) * Y)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,434
s583134350
p04011
u887152994
1569945951
Python
Python (3.4.3)
py
Accepted
17
2940
94
n,k,x,y = (int(input())for i in [0]*4) if k <= n: print(k*(x-y)+n*y) else: print(n*x)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,435
s977925219
p04011
u746419473
1569920825
Python
Python (3.4.3)
py
Accepted
17
2940
88
n=int(input()) k=int(input()) x=int(input()) y=int(input()) print(n*x-(x-y)*max(n-k,0))
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,436
s975252835
p04011
u175590965
1569897480
Python
Python (3.4.3)
py
Accepted
17
2940
125
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)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,437
s427434823
p04011
u397942996
1569893923
Python
Python (3.4.3)
py
Accepted
18
2940
140
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) if N > K: cost = K * X + Y * (N - K) else: cost = N * X print(cost)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,438
s898583967
p04011
u263226212
1569886385
Python
Python (3.4.3)
py
Accepted
17
2940
167
# -*- coding: utf-8 -*- # input N = int(input()) K = int(input()) X = int(input()) Y = int(input()) # solve & output print(X * K + Y * (N - K) if N >= K else X * N)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,439
s922221640
p04011
u153902122
1569870450
Python
Python (3.4.3)
py
Accepted
18
3064
95
N=int(input()) K=int(input()) X=int(input()) Y=int(input()) print(K*X+(N-K)*Y if N>=K else N*X)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,440
s396081661
p04011
u662449766
1569846662
Python
Python (3.4.3)
py
Accepted
17
2940
258
import sys input = sys.stdin.readline def main(): n = int(input()) k = int(input()) x = int(input()) y = int(input()) if k >= n: print(n * x) else: print(k * x + (n - k) * y) if __name__ == "__main__": main()
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,441
s233176481
p04011
u824326335
1569826166
Python
Python (3.4.3)
py
Accepted
17
2940
105
n = int(input()) k = int(input()) x = int(input()) y = int(input()) print((n-k)*y+(k)*x if n>=k else n*x)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,442
s671684991
p04011
u396890425
1569781529
Python
Python (3.4.3)
py
Accepted
17
2940
67
n,k,x,y=[int(input())for _ in range(4)];print(n*x-(x-y)*max(n-k,0))
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,443
s305791162
p04011
u115188504
1569778656
Python
Python (3.4.3)
py
Accepted
17
2940
118
n, k, x, y = [int(input()) for i in range(4)] if n>k: ans = x*k+(n-k)*y else: ans = x*n print(ans)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,444
s795131720
p04011
u681917640
1569729987
Python
Python (3.4.3)
py
Accepted
19
2940
176
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) result = 0 for i in range(1, N+1): if i <= K: result += X else: result += Y print(result)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,445
s704084090
p04011
u223904637
1569717943
Python
Python (3.4.3)
py
Accepted
19
2940
115
n=int(input()) k=int(input()) x=int(input()) y=int(input()) if n<=k: print(x*n) else: print(x*(k)+(n-k)*y)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,446
s746636029
p04011
u247465867
1569670836
Python
Python (3.4.3)
py
Accepted
17
2940
97
#2019/09/27 N, K, X, Y = [int(input()) for i in range(4)] print(K*X + (N-K)*Y if N > K else N*X )
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,447
s203896819
p04011
u747602774
1569645628
Python
Python (3.4.3)
py
Accepted
17
2940
118
N=int(input()) K=int(input()) X=int(input()) Y=int(input()) if N >= K: S=X*K+Y*(N-K) elif N < K: S=N*X print(S)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,448
s471465252
p04011
u821989875
1569526367
Python
Python (3.4.3)
py
Accepted
17
3060
188
# -*- coding: utf-8 -*- n = int(input()) k = int(input()) x = int(input()) y = int(input()) expenses = 0 if n > k: expenses = k * x + (n - k) * y else: expenses = n * x print(expenses)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,449
s475670723
p04011
u470359972
1569423547
Python
Python (3.4.3)
py
Accepted
18
2940
128
n=int(input()) k=int(input()) x=int(input()) y=int(input()) if n>=k: ans=k*x+(n-k)*y print(ans) else: ans=n*x print(ans)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,450
s044703644
p04011
u723590269
1569414133
Python
Python (3.4.3)
py
Accepted
17
3060
133
n=int(input()) k=int(input()) x=int(input()) y=int(input()) if n <= k: out = n*x else : out = k*x + (n-k)*y print(out)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,451
s069628353
p04011
u672898046
1569385006
Python
Python (3.4.3)
py
Accepted
18
2940
177
N = int(input()) #N泊する K = int(input()) X = int(input()) Y = int(input()) #K+1泊以降 t = N-K #この日数分はYの値段 if t > 0: print(X*K+Y*t) else: print(X*N)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,452
s614402491
p04011
u893063840
1569329364
Python
Python (3.4.3)
py
Accepted
18
2940
145
# -*- coding: utf-8 -*- n = int(input()) k = int(input()) x = int(input()) y = int(input()) ans = x * min(k, n) + y * max(0, n - k) print(ans)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,453
s914517994
p04011
u924374652
1569283498
Python
Python (3.4.3)
py
Accepted
19
2940
152
n = int(input()) k = int(input()) x = int(input()) y = int(input()) sum = 0 for i in range(n): if i < k: sum += x else: sum += y print(sum)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,454
s899922946
p04011
u536177854
1569249789
Python
Python (3.4.3)
py
Accepted
18
3064
97
l=[int(input()) for i in range(4)] print(l[0]*l[2] if l[0]<=l[1] else l[1]*l[2]+(l[0]-l[1])*l[3])
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,455
s933282086
p04011
u953753178
1569244602
Python
Python (3.4.3)
py
Accepted
17
2940
119
n, k, x, y = (int(input()) for _ in range(4)) if n >= k: res = k * x + (n-k) * y else: res = n * x print(res)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,456
s212636415
p04011
u779170803
1569219511
Python
Python (3.4.3)
py
Accepted
17
3060
310
INT = lambda: int(input()) INTM = lambda: map(int,input().split()) STR = lambda: str(input()) LIST = lambda: list(map(int,input().split())) def do(): n = INT() k = INT() x = INT() y = INT() if n<=k: print(n*x) else: print(k*x+(n-k)*y) if __name__ == '__main__': do()
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,457
s171631647
p04011
u167908302
1569204249
Python
Python (3.4.3)
py
Accepted
17
2940
136
#coding:utf-8 n = int(input()) k = int(input()) x = int(input()) y = int(input()) if n <= k: print(x*n) else: print(x*k + y*(n-k))
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,458
s710537231
p04011
u404794295
1569198081
Python
Python (3.4.3)
py
Accepted
18
2940
111
N=int(input()) K=int(input()) X=int(input()) Y=int(input()) if K<N: print(K*X+Y*(N-K)) else: print(N*X)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,459
s480377077
p04011
u469254913
1569109560
Python
Python (3.4.3)
py
Accepted
18
2940
131
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) if N <= K: print(N*X) elif N > K: print(K*X+(N-K)*Y)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,460
s388561105
p04011
u661980786
1569108748
Python
Python (3.4.3)
py
Accepted
17
2940
119
n = int(input()) k = int(input()) x = int(input()) y = int(input()) if k > n: k = n sum = x*k + y*(n-k) print(sum)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,461
s462163403
p04011
u336624604
1569096717
Python
Python (3.4.3)
py
Accepted
17
3060
129
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) if N>=K: ans = K*X+(N-K)*Y else: ans =N*X print(ans)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,462
s896832781
p04011
u707690642
1569088431
Python
Python (3.4.3)
py
Accepted
17
3060
185
input_ = [input() for i in range(4)] N, K, X, Y = input_ acc = 0 if int(N) > int(K): acc = int(K) * int(X) + (int(N) - int(K)) * int(Y) else: acc = int(N) * int(X) print(acc)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,463
s481400250
p04011
u707690642
1569088284
Python
Python (3.4.3)
py
Accepted
17
3060
198
input_ = [input() for i in range(4)] N, K, X, Y = input_ acc = 0 if int(N) > int(K): acc = (int(K) * int(X)) + ((int(N) - int(K)) * int(Y)) else: acc = int(N) * int(X) print(acc)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,464
s646481451
p04011
u385244248
1569061032
Python
Python (3.4.3)
py
Accepted
17
2940
110
N,K,X,Y = map(int,open(0).read().split()) if N >= K: print(int((X*K)+(Y*(N-K)))) else: print(int(X*N))
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,465
s438121948
p04011
u597047658
1569026018
Python
Python (3.4.3)
py
Accepted
17
2940
126
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) if N <= K: print(N*X) else: print(X*K + Y*(N-K))
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,466
s386914842
p04011
u333731247
1568961935
Python
Python (3.4.3)
py
Accepted
17
3064
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))
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,467
s417855574
p04011
u202570162
1568936082
Python
Python (3.4.3)
py
Accepted
17
2940
114
n = int(input()) k = int(input()) x = int(input()) y = int(input()) if n<=k: print(x*n) else: print(x*k+(n-k)*y)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,468
s481283066
p04011
u062484507
1568906817
Python
Python (3.4.3)
py
Accepted
17
2940
149
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) if N < K: answer = N * X else: answer = K * X + (N - K) * Y print(answer)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,469
s362990116
p04011
u636290142
1568893996
Python
Python (3.4.3)
py
Accepted
19
2940
185
n = int(input()) k = int(input()) x = int(input()) y = int(input()) pay_sum = 0 for i in range(1, n+1): if i > k: pay_sum += y else: pay_sum += x print(pay_sum)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,470