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
s845213386
p04011
u387456967
1555018352
Python
Python (3.4.3)
py
Accepted
21
3316
83
n,k,x,y = [int(input()) for i in range(4)] ans = min(k,n)*x+max(0,n-k)*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,971
s681522864
p04011
u697108631
1554981107
Python
Python (3.4.3)
py
Accepted
17
3060
172
max = int(input()) sam = int(input()) sam_num = int(input()) sam_later= int(input()) if(max<sam): print(sam_num*max) else: print(sam_num * sam + sam_later * (max-sam))
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,972
s188889050
p04011
u209918867
1554958173
Python
Python (3.4.3)
py
Accepted
17
2940
55
n,k,x,y=map(int,open(0));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,973
s863101916
p04011
u428855582
1554951964
Python
Python (3.4.3)
py
Accepted
17
2940
78
N,K,X,Y = map(int, open(0).read().split()) 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,974
s483274547
p04011
u423852414
1554936690
Python
Python (3.4.3)
py
Accepted
17
2940
123
N, K, X, Y = map(int, open(0).read().split()) if N <= K: a = N * X print(a) else: a = K * X + (N - K) * Y 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,975
s755620278
p04011
u831830097
1554931026
Python
Python (3.4.3)
py
Accepted
18
2940
124
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,976
s800232192
p04011
u733870825
1554898297
Python
Python (3.4.3)
py
Accepted
20
2940
170
n = int(input()) k = int(input()) x = int(input()) y = int(input()) en = 0 for i in range(n): if i + 1 < k +1: en += x else: en += y print(en)
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,977
s467380692
p04011
u180528413
1554852595
Python
Python (3.4.3)
py
Accepted
18
2940
125
N, K, X, Y = (int(input()) for _ in range(4)) if N > K: result = K * X + (N-K) * Y else: result = N * X 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,978
s721845231
p04011
u729133443
1554851195
Python
Python (3.4.3)
py
Accepted
17
2940
52
n,k,x,y=map(int,open(0));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,979
s895666218
p04011
u716649090
1554761359
Python
Python (3.4.3)
py
Accepted
17
2940
110
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,980
s070089037
p04011
u319818856
1554749879
Python
Python (3.4.3)
py
Accepted
18
2940
269
def tak_and_hotels(N: int, K: int, X: int, Y: int) -> int: return min(N, K) * X + max(0, N - K) * Y if __name__ == "__main__": N = int(input()) K = int(input()) X = int(input()) Y = int(input()) ans = tak_and_hotels(N, K, X, 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,981
s766514760
p04011
u894694822
1554690873
Python
Python (3.4.3)
py
Accepted
18
2940
112
a =int(input()) b =int(input()) c =int(input()) d =int(input()) if a<=b: print(a*c) else: print(b*c+(a-b)*d)
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,982
s523151119
p04011
u288040231
1554683240
Python
Python (3.4.3)
py
Accepted
20
2940
134
N,K,X,Y = [int(input()) for i in range(4)] result = 0 if N > K: result = K * X + (N - K) * Y else: result = N * X 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,983
s855148530
p04011
u288040231
1554682590
Python
Python (3.4.3)
py
Accepted
17
2940
196
# N,K,X,Y = map(int, input().split()) N = int(input()) K = int(input()) X = int(input()) Y = int(input()) result = 0 if N > K: result = K * X + (N - K) * Y else: result = N * X 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,984
s569649149
p04011
u143509139
1554681059
Python
Python (3.4.3)
py
Accepted
18
2940
109
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,985
s152999734
p04011
u457960175
1554679658
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,986
s608646123
p04011
u288040231
1554670576
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(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,987
s838413936
p04011
u483151310
1554665881
Python
Python (3.4.3)
py
Accepted
19
3060
180
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) yado = 0 for i in range(1, N+1): if i <= K: yado += X elif i > K: yado += Y print(yado)
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,988
s675381415
p04011
u844005364
1554657683
Python
Python (3.4.3)
py
Accepted
17
2940
128
a = int(input()) b = int(input()) c = int(input()) d = int(input()) if b > a: print(a * c) else: print((b * c)+(a - b) * d)
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,989
s310375651
p04011
u299730702
1554649823
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: 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,990
s263815743
p04011
u256868077
1554644668
Python
Python (3.4.3)
py
Accepted
17
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,196,991
s650636425
p04011
u363610900
1554621215
Python
Python (3.4.3)
py
Accepted
18
2940
111
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) print(X * K + 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,196,992
s343447762
p04011
u923712635
1554608611
Python
Python (3.4.3)
py
Accepted
17
3060
117
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,993
s590297591
p04011
u557523358
1554588188
Python
Python (3.4.3)
py
Accepted
18
2940
86
n, k, x, y = (int(input()) for _ in range(4)) print(x * min(k, n) + y * max(0, 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,994
s022474412
p04011
u061975638
1554527925
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,995
s345408134
p04011
u055941944
1554518649
Python
Python (3.4.3)
py
Accepted
18
2940
176
# -*- coding utf-8 -*- n = int(input()) k = int(input()) x = int(input()) y = int(input()) if n <= k : print(n*x) elif k < n : ans = (k*x) + (y*(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,996
s417305635
p04011
u121732701
1554500022
Python
Python (3.4.3)
py
Accepted
19
3064
174
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) sum1 = 0 for i in range(N): if K>=i+1: sum1 += X else: sum1 += Y print(sum1)
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,997
s176586674
p04011
u091051505
1554466702
Python
Python (3.4.3)
py
Accepted
17
2940
141
n = int(input()) k = int(input()) x = int(input()) y = int(input()) if (n <= k): ans = n * x else: ans = k * x + (n-k) * 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,998
s776651744
p04011
u616522759
1554457009
Python
Python (3.4.3)
py
Accepted
18
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,196,999
s834762854
p04011
u037430802
1554430859
Python
Python (3.4.3)
py
Accepted
17
2940
121
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,000
s616016313
p04011
u989326345
1554393446
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: ans=N*X else: ans=K*X+(N-K)*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,001
s812407402
p04011
u279493135
1554387425
Python
Python (3.4.3)
py
Accepted
18
2940
156
from sys import stdin input = stdin.readline N, K, X, Y = [int(input().rstrip()) for _ in range(4)] 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,002
s392490870
p04011
u225415456
1554325096
Python
Python (3.4.3)
py
Accepted
20
2940
115
a = int(input()) b = int(input()) p1= int(input()) p2= int(input()) c = a - b print(a*p1 if a<b else b*p1 + c*p2)
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,003
s296634522
p04011
u019996510
1554303724
Python
Python (3.4.3)
py
Accepted
18
3060
342
def main(): N = int(input()) K = int(input()) X = int(input()) Y = int(input()) charge = 0 charge1 = 0 charge2 = 0 charge3 = 0 if K <= N: charge1 += K*X charge2 += (N-K)*Y charge = charge1 + charge2 else: charge3 += N*X charge = charge3 ...
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,004
s471951379
p04011
u603745966
1554253993
Python
Python (3.4.3)
py
Accepted
22
3572
713
from functools import reduce def main(): # 初期値用:十分大きい数(100億) # 1e10 # 初期値用:十分小さい数(-100億) # -1e10 # 一文字のみを読み込み # s = input().rstrip().split(' ') # スペース区切りで標準入力を配列として読み込み # s = input().rstrip().split(' ') # 位置文字ずつ標準入力を配列として読み込み # s = list(input().rstrip()) N = int(inpu...
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,005
s585316134
p04011
u457190703
1554231294
Python
Python (3.4.3)
py
Accepted
17
3060
128
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,006
s905532213
p04011
u460745860
1554226868
Python
Python (3.4.3)
py
Accepted
18
2940
74
N,K,X,Y = eval('int(input()),'*4) 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,197,007
s440365129
p04011
u405947212
1554213133
Python
Python (3.4.3)
py
Accepted
18
2940
132
n=int(input()) k=int(input()) x=int(input()) y=int(input()) if n>k: print(int(k*x+(n-k)*y)) elif n<=k: 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,008
s686477575
p04011
u748311048
1554210734
Python
Python (3.4.3)
py
Accepted
17
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,009
s607986463
p04011
u655975843
1554154105
Python
Python (3.4.3)
py
Accepted
18
2940
129
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,010
s125978979
p04011
u549497563
1554143935
Python
Python (3.4.3)
py
Accepted
18
2940
98
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,197,011
s605262181
p04011
u036363750
1554072098
Python
Python (3.4.3)
py
Accepted
17
3060
190
#!/usr/bin/env python3 def main(): a = [int(input()) for i in range(4)] if a[0]>a[1]: print(a[1]*a[2]+(a[0]-a[1])*a[3]) else: print(a[0]*a[2]) 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,012
s442732625
p04011
u393581926
1554003165
Python
Python (3.4.3)
py
Accepted
17
2940
107
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,197,013
s190729720
p04011
u826557401
1553975319
Python
Python (3.4.3)
py
Accepted
19
3060
157
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) sum = 0 for i in range(1, N+1): if i >= K +1: sum += Y else: sum +=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,014
s046850261
p04011
u911575040
1553953329
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(int(k*x+(n-k)*y)) elif n<=k: 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,015
s978966433
p04011
u280512618
1553948802
Python
Python (3.4.3)
py
Accepted
17
2940
90
n=int(input()) k=int(input()) x=int(input()) y=int(input()) print(x*min(n,k)+y*max(0,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,016
s495548278
p04011
u912862653
1553893463
Python
Python (3.4.3)
py
Accepted
17
2940
116
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) if N<K: print(N*X) else: print(K*X + (N-K)*Y)
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,017
s559889919
p04011
u141642872
1553892759
Python
Python (3.4.3)
py
Accepted
23
3316
101
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) print(min(K,N)*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,018
s616529982
p04011
u019578976
1553889140
Python
Python (3.4.3)
py
Accepted
17
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,019
s831843577
p04011
u305965165
1553883954
Python
Python (3.4.3)
py
Accepted
18
2940
125
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,020
s206536040
p04011
u633355062
1553807625
Python
Python (3.4.3)
py
Accepted
18
2940
112
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,021
s650419748
p04011
u190086340
1553796759
Python
Python (3.4.3)
py
Accepted
17
2940
228
args = [] for _ in range(4): args.append(int(input())) N, K, X, Y = args def solve(): if N <= K: return N * X first = K second = N - first return first * X + second * Y res = solve() 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,022
s772812223
p04011
u390694622
1553732013
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: 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,023
s862078861
p04011
u795630164
1553721095
Python
Python (3.4.3)
py
Accepted
17
2940
104
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) 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,024
s826905887
p04011
u993622994
1553710450
Python
Python (3.4.3)
py
Accepted
17
2940
171
# -*- coding: utf-8 -*- n = int(input()) k = int(input()) x = int(input()) y = int(input()) if n > k: fee = (k * x) + ((n - k) * y) 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,197,025
s015138972
p04011
u455696302
1553695611
Python
Python (3.4.3)
py
Accepted
17
2940
165
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) res = 0 if N <= K: res = N*X print(res) else: res = K*X + (N-K) * Y 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,026
s336171705
p04011
u246820565
1553660256
Python
Python (3.4.3)
py
Accepted
17
2940
109
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,027
s225308106
p04011
u614314290
1553648877
Python
Python (3.4.3)
py
Accepted
18
2940
92
N, K, X, Y = map(int, open(0).read().split()) 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,197,028
s497735592
p04011
u714533789
1553635000
Python
Python (3.4.3)
py
Accepted
17
2940
75
n,k,x,y = [int(input()) for _ in '1'*4] print(x*n - (x-y)*([0,n-k][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,029
s931937729
p04011
u077019541
1553610367
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(X*N) else: print(X*K+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,030
s164388636
p04011
u143318682
1553610092
Python
Python (3.4.3)
py
Accepted
17
2940
166
# -*- coding: utf-8 -*- N = int(input()) K = int(input()) X = int(input()) Y = int(input()) if N <= K: ans = X * N else: ans = X * K + Y * (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,197,031
s149553407
p04011
u864900001
1553550553
Python
Python (3.4.3)
py
Accepted
18
2940
106
#44 n = int(input()) k = int(input()) x = int(input()) y = int(input()) print(min(n*x,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,032
s854170583
p04011
u179719532
1553409714
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,033
s648354649
p04011
u588081069
1553213177
Python
Python (3.4.3)
py
Accepted
19
3060
259
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) # K個までの和,N-K個からの和 ## print(min(N, K)*X+max(0, N-K)*Y) 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,197,034
s465926771
p04011
u588081069
1553212644
Python
Python (3.4.3)
py
Accepted
18
3060
182
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,197,035
s173930648
p04011
u267300160
1553212207
Python
Python (3.4.3)
py
Accepted
18
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,036
s452945514
p04011
u721316601
1553201085
Python
Python (3.4.3)
py
Accepted
17
2940
101
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,037
s622042492
p04011
u227082700
1553193263
Python
Python (3.4.3)
py
Accepted
18
2940
74
[n,k,x,y]=[int(input())for _ in range(4)];print(min(n,k)*x+(max(n,k)-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,038
s963957034
p04011
u268516119
1553126570
Python
Python (3.4.3)
py
Accepted
17
2940
85
[N,K,X,Y]=[int(input()) for i in range(4)] 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,039
s879257919
p04011
u782654209
1553052105
Python
Python (3.4.3)
py
Accepted
17
2940
97
N=int(input()) K=int(input()) X=int(input()) Y=int(input()) print(str(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,040
s234777098
p04011
u597374218
1552958764
Python
Python (3.4.3)
py
Accepted
17
2940
68
n,k,x,y=[int(input()) for i 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,041
s671405712
p04011
u827241372
1552936899
Python
Python (3.4.3)
py
Accepted
17
2940
225
def main() -> None: 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) 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,042
s356289450
p04011
u824237520
1552936484
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,043
s056821584
p04011
u518042385
1552872377
Python
Python (3.4.3)
py
Accepted
17
2940
107
n=int(input()) m=int(input()) x=int(input()) y=int(input()) if n>m: print((n-m)*y+m*x) 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,044
s316003561
p04011
u844123804
1552869496
Python
Python (3.4.3)
py
Accepted
19
2940
137
a = [int(input()) for i in range(4)] ans = 0 for i in range(1,a[0]+1): if i<=a[1]: ans += a[2] else: ans += a[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,045
s908501885
p04011
u304630225
1552856197
Python
Python (3.4.3)
py
Accepted
17
2940
115
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,046
s358574245
p04011
u023077142
1552827296
Python
Python (3.4.3)
py
Accepted
18
3064
770
from itertools import combinations, product def gcd(a, b): if a < b: a, b = b, a while b != 0: a, b = b, a % b return a def lcm(a, b): return a * b // gcd(a, b) def get(fmt): ps = input().split() r = [] for p, t in zip(ps, fmt): if t == "i": r.append(...
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,047
s086187511
p04011
u808427016
1552793266
Python
Python (3.4.3)
py
Accepted
17
2940
126
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) result = min(N, K) * X + max(N - K, 0) * 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,197,048
s772905781
p04011
u373529207
1552783162
Python
Python (3.4.3)
py
Accepted
20
3316
127
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) ans = 0 ans += min(N, K)*X ans += max(0, N-K)*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,049
s289223725
p04011
u119982147
1552753665
Python
Python (3.4.3)
py
Accepted
17
2940
117
n = int(input()) k = int(input()) x = int(input()) y = int(input()) ans = min(n, k) * x + max(0, n - k)*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,050
s730632881
p04011
u522266410
1552709784
Python
Python (3.4.3)
py
Accepted
18
2940
118
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,197,051
s531552320
p04011
u568595296
1552687307
Python
Python (3.4.3)
py
Accepted
17
2940
82
N, K, X, Y = [int(input()) for i in range(4)] 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,052
s537185082
p04011
u728498511
1552614481
Python
Python (3.4.3)
py
Accepted
18
2940
87
n, k, x, y = map(int, [input() for i 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,197,053
s146218107
p04011
u393512980
1552577055
Python
Python (3.4.3)
py
Accepted
17
2940
114
a = [int(input()) for _ in range(4)] if a[0] <= a[1]: print(a[0]*a[2]) else: print(a[1]*a[2]+a[3]*(a[0]-a[1]))
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,054
s964932305
p04011
u164678731
1552557829
Python
Python (3.4.3)
py
Accepted
17
2940
148
# 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,055
s517228989
p04011
u367130284
1552552797
Python
Python (3.4.3)
py
Accepted
18
2940
62
a,b,c,d=eval('int(input()),'*4);print(c*min(a,b)+d*max(a-b,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,056
s890861198
p04011
u285443936
1552531657
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 = N * X else: ans = K * X + (N - K) * 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,057
s942359931
p04011
u729133443
1552517588
Python
Python (3.4.3)
py
Accepted
18
2940
59
n,k,x,y=eval('int(input()),'*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,058
s043728500
p04011
u384657160
1552512056
Python
Python (3.4.3)
py
Accepted
18
2940
132
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,059
s805655197
p04011
u878138257
1552461258
Python
Python (3.4.3)
py
Accepted
18
2940
116
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,197,060
s727870192
p04011
u325264482
1552266964
Python
Python (3.4.3)
py
Accepted
18
2940
120
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) ans = X * min(N, K) + 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,197,061
s261168767
p04011
u392029857
1552262896
Python
Python (3.4.3)
py
Accepted
20
3060
124
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) if (N-K)>=0: 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,062
s300581130
p04011
u664652300
1552249593
Python
Python (3.4.3)
py
Accepted
18
2940
118
n=int(input()) k=int(input()) x=int(input()) y=int(input()) a=0 if n<=k: a+=n*x else: a+=k*x a+=(n-k)*y 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,197,063
s632401316
p04011
u380933932
1552248668
Python
Python (3.4.3)
py
Accepted
17
2940
184
n=int(input()) k=int(input()) x=int(input()) y=int(input()) #li=input().split() #li=list(map(int,input().split())) #n=input() if n>=k: ans=x*k+y*(n-k) 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,064
s981355968
p04011
u021877437
1552228009
Python
Python (3.4.3)
py
Accepted
18
2940
199
N = int(input().rstrip()) K = int(input().rstrip()) X = int(input().rstrip()) Y = int(input().rstrip()) v = N - K if 0 > v: r = N * X else: # K < N r = K * X r += v * Y 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,065
s875880197
p04011
u677393869
1552162226
Python
Python (3.4.3)
py
Accepted
18
2940
108
N=int(input()) K=int(input()) X=int(input()) Y=int(input()) if N-K>0: A=X*K+Y*(N-K) else: A=X*N 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,197,066
s174461541
p04011
u191635495
1552148091
Python
Python (3.4.3)
py
Accepted
18
2940
104
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) print((X*min(N,K)) + 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,067
s313906501
p04011
u724742135
1552014683
Python
Python (3.4.3)
py
Accepted
18
2940
209
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(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,068
s999081908
p04011
u794173881
1552011997
Python
Python (3.4.3)
py
Accepted
20
2940
97
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,197,069
s209449980
p04011
u030626972
1551853246
Python
Python (3.4.3)
py
Accepted
18
2940
123
n=int(input()) k=int(input()) x=int(input()) y=int(input()) if n <= k: ans = n*x else: ans = k*x+(n-k)*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,070