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
s003148475
p04011
u586149955
1546297333
Python
Python (3.4.3)
py
Accepted
17
2940
121
n = int(input()) k = int(input()) x = int(input()) y = int(input()) d = n - k print(x * k + y * d if d >= 0 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,197,171
s555919417
p04011
u239342230
1546279567
Python
Python (3.4.3)
py
Accepted
18
2940
94
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,197,172
s056019829
p04011
u586478468
1546274946
Python
Python (3.4.3)
py
Accepted
18
3060
122
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)
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,197,173
s971522328
p04011
u126823513
1546258541
Python
Python (3.4.3)
py
Accepted
18
2940
169
n = int(input()) k = int(input()) x = int(input()) y = int(input()) stay_k = n if k > n else k stay_after = (n - k) if n > k else 0 print(stay_k * x + stay_after * 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,197,174
s139104664
p04011
u272557899
1546213919
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(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,197,175
s034238691
p04011
u785578220
1546211904
Python
Python (3.4.3)
py
Accepted
18
2940
136
a = int(input()) b = int(input()) c = int(input()) d = int(input()) res = 0 if a>b: res += c*b + d*(a-b) else:res+=c*a 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,197,176
s089219549
p04011
u048945791
1546201537
Python
Python (3.4.3)
py
Accepted
17
2940
133
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,197,177
s929180844
p04011
u726439578
1546152014
Python
Python (3.4.3)
py
Accepted
18
2940
113
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,197,178
s358770481
p04011
u740284863
1546084392
Python
Python (3.4.3)
py
Accepted
18
2940
118
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,197,179
s434960841
p04011
u643840641
1546009767
Python
Python (3.4.3)
py
Accepted
18
2940
102
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,197,180
s461573769
p04011
u916806287
1545909161
Python
Python (3.4.3)
py
Accepted
17
2940
84
N, K, X, Y = [int(input()) for i in range(4)] print(X*K+Y*(N-K) if N-K > 0 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,197,181
s830311754
p04011
u023515228
1545861538
Python
Python (3.4.3)
py
Accepted
18
2940
64
N,K,X,Y=[int(input())for _ in' '*4];print(X*N+(X-Y)*(K-N)*(K<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,197,182
s241539364
p04011
u052332717
1545851299
Python
Python (3.4.3)
py
Accepted
18
2940
100
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,197,183
s786411994
p04011
u886274153
1545830373
Python
Python (3.4.3)
py
Accepted
17
2940
173
N, K, X, Y = [int(input()) for i in range(4)] def price(N, K, X, Y): if N < K: return N * X else: return K * X + (N-K) * Y print(price(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,197,184
s942447895
p04011
u572561929
1545757292
Python
Python (3.4.3)
py
Accepted
17
2940
127
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,197,185
s494557725
p04011
u129978636
1545654638
Python
Python (3.4.3)
py
Accepted
18
2940
68
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,197,186
s707420839
p04011
u129978636
1545654264
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,197,187
s105277749
p04011
u424103788
1545630196
Python
Python (3.4.3)
py
Accepted
18
2940
82
N, K, X, Y = [int(input()) for _ in range(4)] 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,197,188
s850648072
p04011
u782098901
1545495491
Python
Python (3.4.3)
py
Accepted
18
2940
111
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,197,189
s275917569
p04011
u546074985
1545410931
Python
Python (3.4.3)
py
Accepted
19
2940
151
N, K, X, Y = [int(input()) for x in range(4)] cost = 0 for x in range(1, N+1): if x <= K: cost += X else: cost += Y 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,197,190
s571345575
p04011
u472400577
1545310446
Python
Python (3.4.3)
py
Accepted
18
3060
105
n, k, x, y = int(input()),int(input()),int(input()),int(input()) print((n>k)*(k*x+(n-k)*y)or(n<=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,197,191
s327211505
p04011
u589726284
1545257686
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(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,197,192
s714602678
p04011
u439392790
1545235788
Python
Python (3.4.3)
py
Accepted
18
2940
111
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,197,193
s781395425
p04011
u887207211
1545192640
Python
Python (3.4.3)
py
Accepted
19
3060
153
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) cnt = 0 for i in range(N): if(i < K): cnt += X else: cnt += Y print(cnt)
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,197,194
s123775346
p04011
u880373275
1545170618
Python
Python (3.4.3)
py
Accepted
18
2940
198
def main(): n = int(input()) k = int(input()) x = int(input()) y = int(input()) cost = min(n, k) * x + max(n - k, 0) * y print(cost) 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,197,195
s290886757
p04011
u364741711
1545163398
Python
Python (3.4.3)
py
Accepted
18
2940
109
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,197,196
s977286488
p04011
u762420987
1545143974
Python
Python (3.4.3)
py
Accepted
18
2940
142
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) sum = 0 if N <= K: print(X*N) elif N > K: print(X*K+(N-K)*Y) #ok
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,197,197
s076845889
p04011
u694370915
1545088527
Python
Python (3.4.3)
py
Accepted
19
2940
161
a = int(input()) b = int(input()) c = int(input()) d = int(input()) s = 0 for i in range(a): if i < b: s += c continue s += d 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,197,198
s321211747
p04011
u445511055
1544990328
Python
Python (3.4.3)
py
Accepted
18
2940
253
# -*- coding: utf-8 -*- def main(): """Function.""" 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) 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,197,199
s519955743
p04011
u933214067
1544900159
Python
Python (3.4.3)
py
Accepted
37
5148
282
from statistics import mean, median,variance,stdev import sys import math #x = input().split() #y = input().split() x = int(input()) y = int(input()) z = int(input()) a = int(input()) #for i in range(len(x)): # a.append(int(x[i])) if x <= y: print(x*z) else :print(y*z+(x-y)*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,197,200
s343004002
p04011
u272377260
1544898274
Python
Python (3.4.3)
py
Accepted
18
2940
107
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,197,201
s981000940
p04011
u434208140
1544896658
Python
Python (3.4.3)
py
Accepted
17
2940
94
n=int(input()) k=int(input()) x=int(input()) y=int(input()) print(k*x+y*(n-k) 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,197,202
s452116147
p04011
u557437077
1544847393
Python
Python (3.4.3)
py
Accepted
17
2940
111
n = int(input()) k = int(input()) x = int(input()) y = int(input()) print(x * min(n, k) + max(0, 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,197,203
s232122998
p04011
u921826483
1544729255
Python
Python (3.4.3)
py
Accepted
19
3060
183
n = int(input()) k = int(input()) x = int(input()) y = int(input()) to = 0 for i in range(n): if i < k: to += x else: to += y print(to)
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,197,204
s048488645
p04011
u371467115
1544682665
Python
Python (3.4.3)
py
Accepted
18
3060
114
N=int(input()) K=int(input()) X=int(input()) Y=int(input()) if N>=K: print(K*X+(N-K)*Y) if N<K: 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,197,205
s230221953
p04011
u669382434
1544595886
Python
Python (3.4.3)
py
Accepted
18
2940
71
n,k,x,y=[int(input()) for i in range(4)] 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,197,206
s336471852
p04011
u928784113
1544592343
Python
Python (3.4.3)
py
Accepted
18
2940
143
# -*- coding: utf-8 -*- 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,197,207
s862300096
p04011
u695811449
1544522482
Python
Python (3.4.3)
py
Accepted
17
2940
113
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,197,208
s972867945
p04011
u764056643
1544503751
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(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,197,209
s865302001
p04011
u201234972
1544404240
Python
Python (3.4.3)
py
Accepted
18
2940
129
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,197,210
s595047252
p04011
u514383727
1544248387
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,197,211
s439522591
p04011
u761529120
1544061619
Python
Python (3.4.3)
py
Accepted
20
2940
170
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) sum = 0 for i in range(1, N+1): 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,197,212
s601070658
p04011
u009249232
1543809455
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,197,213
s164056765
p04011
u620945921
1543718700
Python
Python (3.4.3)
py
Accepted
17
2940
131
n=int(input()) k=int(input()) x=int(input()) y=int(input()) if n<=k: payment=x*n else: payment=x*k+y*(n-k) print(int(payment))
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,197,214
s451153648
p04011
u140251125
1543415029
Python
Python (3.4.3)
py
Accepted
17
2940
149
# input 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,197,215
s892290025
p04011
u844789719
1543374812
Python
Python (3.4.3)
py
Accepted
17
2940
100
N, K, X, Y = [int(input()) for _ in range(4)] 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,197,216
s626835152
p04011
u920299620
1543345487
Python
Python (3.4.3)
py
Accepted
18
3060
129
n=int(input()) k=int(input()) x=int(input()) y=int(input()) x_day = min( [n,k] ) y_day = max( [0,n-k]) print( x*x_day + y*y_day )
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,197,217
s791703653
p04011
u919521780
1542826991
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(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,197,218
s128070772
p04011
u555962250
1542765716
Python
Python (3.4.3)
py
Accepted
18
2940
127
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,197,219
s662972252
p04011
u993642190
1542641008
Python
Python (3.4.3)
py
Accepted
19
3060
155
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) sum = 0 for i in range(1,N+1) : 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,197,220
s177845617
p04011
u330039499
1542518227
Python
Python (2.7.6)
py
Accepted
11
2568
95
N = input() K = input() X = input() Y = input() print N * X if N <= K else 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,197,221
s525659191
p04011
u001024152
1542336339
Python
Python (3.4.3)
py
Accepted
17
3064
105
n = int(input()) k = int(input()) x = int(input()) y = int(input()) print(k*x + (n-k)*y if k<=n 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,197,222
s195988685
p04011
u255280439
1542307655
Python
Python (3.4.3)
py
Accepted
38
4644
3,119
import sys import math import collections import itertools import array import inspect # Set max recursion limit sys.setrecursionlimit(1000000) # Debug output def chkprint(*args): names = { id(v): k for k, v in inspect.currentframe().f_back.f_locals.items() } print(', '.join( name...
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,197,223
s085816110
p04011
u160861278
1542260869
Python
Python (3.4.3)
py
Accepted
17
3060
170
def main(n,k,x,y): if n<=k: return print(n*x) else: return print(k*x + (n-k) *y) n = int(input()) k = int(input()) x = int(input()) y = int(input()) 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,197,224
s862316542
p04011
u759360502
1541889023
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(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,197,225
s275866431
p04011
u369212307
1541652925
Python
Python (3.4.3)
py
Accepted
17
2940
347
n = int(input()) # 変数が何表すか見にくい…… k = int(input()) x = int(input()) y = int(input()) if n - k <= 0 : # 宿泊日数nがk泊よりも多いかどうか print(n * x) # 宿泊日数のほうが少なければ単純に掛ければいい else: print((x * k) + (y * (n - k))) # 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,197,226
s541199045
p04011
u869728296
1541622891
Python
Python (3.4.3)
py
Accepted
20
3064
127
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,197,227
s881564604
p04011
u977642052
1541561548
Python
Python (3.4.3)
py
Accepted
17
2940
183
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) summary = 0 if N > K: summary += K * X summary += (N - K) * Y else: summary += N * X print(summary)
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,197,228
s134033746
p04011
u397531548
1541539584
Python
Python (3.4.3)
py
Accepted
17
2940
111
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,197,229
s061885850
p04011
u273201018
1541453664
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(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,197,230
s156609080
p04011
u877217629
1541350714
Python
Python (3.4.3)
py
Accepted
18
2940
157
n = int(input()) k = int(input()) x = int(input()) y = int(input()) sum = 0 if n >= k: sum += k * x sum += (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,197,231
s907031528
p04011
u943657163
1541172446
Python
Python (3.4.3)
py
Accepted
17
2940
87
N, K, X, Y = [int(input()) for _ in range(4)] print(X * min(N, K) + 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,197,232
s053236646
p04011
u350997995
1541038569
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(int(K*X+(N-K)*Y)) else: print(int(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,197,233
s529432151
p04011
u432805419
1540957755
Python
Python (3.4.3)
py
Accepted
19
3060
116
a = [int(input()) for i in range(4)] if a[0] <= a[1]: print(a[0]*a[2]) else: print(a[1]*a[2] + (a[0]-a[1])*a[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,197,234
s047621981
p04011
u733321071
1540928049
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(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,197,235
s532478336
p04011
u143189168
1540865028
Python
Python (3.4.3)
py
Accepted
17
3060
176
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) budget = 0 if N <= K: budget = N*X print(budget) else: budget = K*X + (N-K)*Y print(budget)
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,197,236
s418940394
p04011
u897302879
1540863311
Python
Python (3.4.3)
py
Accepted
17
2940
124
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) print(min([N, K]) * X + ((N-K) * Y if N-K >= 0 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,197,237
s422922193
p04011
u240793404
1540823252
Python
Python (3.4.3)
py
Accepted
19
2940
109
n,k,x,y = [int(input()) for i in range(4)] ans = 0 for i in range(n): ans += x if i < k else 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,197,238
s368522807
p04011
u090225501
1540784836
Python
Python (3.4.3)
py
Accepted
17
2940
92
n, k, x, y = [int(input()) for _ in range(4)] r = x * min(n, k) + y * max(n - k, 0) print(r)
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,197,239
s011198932
p04011
u754553095
1540686520
Python
Python (3.4.3)
py
Accepted
17
2940
115
a=int(input()) b=int(input()) c=int(input()) d=int(input()) if 1<=a<=b: print(a*c) else: print(b*c+d*(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,197,240
s315670453
p04011
u637824361
1540677409
Python
Python (3.4.3)
py
Accepted
17
2940
144
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) if N <= K: print(int(X * N)) else: print(int(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,197,241
s628687351
p04011
u295961023
1540201997
Python
Python (3.4.3)
py
Accepted
17
2940
209
def main(): N, K, X, Y = [int(input()) for _ in range(4)] res = 0 if N <= K: res = N * X else: res = K * X + (N - K) * Y print(res) 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,197,242
s849336298
p04011
u923279197
1540160147
Python
Python (3.4.3)
py
Accepted
17
2940
112
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)
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,197,243
s240780738
p04011
u328755070
1540137910
Python
Python (3.4.3)
py
Accepted
17
2940
127
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) lat = 0 if N < K else N - K print((N-lat) * X + lat * 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,197,244
s439561837
p04011
u131405882
1540071525
Python
Python (2.7.6)
py
Accepted
10
2568
132
N = input() K = input() X = input() Y = input() if(X < Y): tmp = X X = Y Y = tmp 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,197,245
s179505248
p04011
u941753895
1540027014
Python
Python (3.4.3)
py
Accepted
17
3060
95
f=lambda:int(input()) n=f();k=f();x=f();y=f() 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,197,246
s577822868
p04011
u500279510
1540009055
Python
Python (3.4.3)
py
Accepted
17
3060
145
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) a = N * X b = K * X + (N - K) * Y if N <= K: print(a) else: print(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,197,247
s434163712
p04011
u533306556
1539993195
Python
Python (3.4.3)
py
Accepted
17
2940
110
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,197,248
s227154499
p04011
u513081876
1539819721
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,197,249
s064999986
p04011
u848647227
1539708151
Python
Python (3.4.3)
py
Accepted
19
3060
175
a = int(input()) b = int(input()) c = int(input()) d = int(input()) count = 0 for i in range(1,a+1): if i > b: count += d else: count += c print(count)
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,197,250
s004861579
p04011
u094191970
1539616849
Python
Python (3.4.3)
py
Accepted
17
2940
119
roop_num = 4 N,K,X,Y = [int(input()) for i in range(roop_num)] 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,197,251
s597787515
p04011
u094191970
1539616379
Python
Python (3.4.3)
py
Accepted
17
2940
119
roop_num = 4 N,K,X,Y = [int(input()) for i in range(roop_num)] 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,197,252
s883792508
p04011
u595353654
1539491396
Python
Python (3.4.3)
py
Accepted
17
2940
252
# -*- coding: utf-8 -*- from sys import stdin n = int(stdin.readline().rstrip()) k = int(stdin.readline().rstrip()) x = int(stdin.readline().rstrip()) y = int(stdin.readline().rstrip()) if n <= k: print(x * n) else: print(y * n + (x - y) * 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,197,253
s983428135
p04011
u681150536
1539481096
Python
Python (3.4.3)
py
Accepted
18
3060
269
def main(): N = int(input()) K = int(input()) X = int(input()) Y = int(input()) sum = 0 for i in range(1, N + 1): if i <= K: sum += X else: sum += Y print(sum) 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,197,254
s595693335
p04011
u233152254
1539465833
Python
Python (3.4.3)
py
Accepted
17
2940
87
N, K, X, Y = [int(input()) for x 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,197,255
s024944769
p04011
u178536051
1539457664
Python
Python (3.4.3)
py
Accepted
17
2940
136
N = int(input()) K = int(input()) S_X = K if (N > K) else N S_Y = N - S_X X = int(input()) Y = int(input()) print((S_X * X) + (S_Y * 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,197,256
s288064062
p04011
u371763408
1539370328
Python
Python (3.4.3)
py
Accepted
17
2940
126
N=int(input()) K=int(input()) X=int(input()) Y=int(input()) extra = N-K if extra < 0: extra = 0 K = N print(X*K+Y*extra)
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,197,257
s859618710
p04011
u052332717
1539051471
Python
Python (3.4.3)
py
Accepted
23
3444
317
days_to_stay = int(input()) special_days = int(input()) normal_price = int(input()) special_price = int(input()) payment = 0 if days_to_stay <= special_days: payment = days_to_stay * normal_price else: payment = (days_to_stay - special_days) * special_price + special_days * normal_price print(payment)
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,197,258
s906957035
p04011
u163449343
1539036500
Python
Python (3.4.3)
py
Accepted
18
3060
194
l = [int(input()) for _ in range(4)] ans = 0 if l[0] < l[1]: ans += l[0] * l[2] else: ans += l[1] * l[2] if (l[0]-l[1]) > 0: for _ in range(l[0]-l[1]): ans += l[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,197,259
s830485446
p04011
u459697504
1539018580
Python
Python (3.4.3)
py
Accepted
17
3064
704
#! /usr/bin/python3 # ABC044_A # A - 高橋君とホテルイージー / Tak and Hotels (ABC Edit) """ 制約 1 ≤ N,K ≤ 10000 1 ≤ Y < X ≤10000 N, K ,X ,Y はいずれも整数である """ def main(): """ 全体の処理を実行するmain関数 """ N = int(input()) # 宿泊日程 N泊 K = int(input()) # 価格の変わる基準 X = int(input()) # K泊までの宿泊費 Y = int(inp...
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,197,260
s531294354
p04011
u711295009
1538847860
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+1: 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,197,261
s672529090
p04011
u484856305
1538831940
Python
Python (3.4.3)
py
Accepted
17
2940
110
n=int(input()) k=int(input()) x=int(input()) y=int(input()) if n <= k: print(x*n) 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,197,262
s418176857
p04011
u094565093
1538794319
Python
Python (3.4.3)
py
Accepted
19
2940
160
N=int(input()) K=int(input()) X=int(input()) Y=int(input()) total=0 for i in range(1,N+1): if i<=K: total+=X else: total+=Y 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,197,263
s738900729
p04011
u138486156
1538714483
Python
Python (3.4.3)
py
Accepted
17
2940
102
n = int(input()) k = int(input()) x = int(input()) y = int(input()) print(x*min(k, n) + 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,197,264
s587541225
p04011
u635339675
1538695990
Python
Python (3.4.3)
py
Accepted
18
2940
116
a=int(input()) b=int(input()) c=int(input()) d=int(input()) if a>b: print(b*c+(a-b)*d) else: print(a*c)
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,197,265
s874254143
p04011
u426108351
1538593367
Python
Python (3.4.3)
py
Accepted
17
2940
133
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,197,266
s553622605
p04011
u940102677
1538527759
Python
Python (3.4.3)
py
Accepted
17
2940
87
n = int(input()) k = int(input()) print(min(n,k)*int(input())+max(0,n-k)*int(input()))
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,197,267
s468672952
p04011
u596276291
1538512891
Python
Python (3.4.3)
py
Accepted
27
3952
820
from collections import defaultdict, Counter from itertools import product, groupby, count, permutations, combinations from math import pi, sqrt from collections import deque from bisect import bisect, bisect_left, bisect_right from string import ascii_lowercase from functools import lru_cache import sys sys.setrecursi...
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,197,268
s468297484
p04011
u873849550
1538361485
Python
Python (3.4.3)
py
Accepted
17
2940
103
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,197,269
s757096936
p04011
u063052907
1538342240
Python
Python (3.4.3)
py
Accepted
17
2940
100
#coding: utf-8 N, K, X, Y = [int(input()) for _ in range(4)] print(X * min(K,N) + 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,197,270