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
s032945325
p04011
u672475305
1561902459
Python
Python (3.4.3)
py
Accepted
17
2940
123
n = int(input()) k = int(input()) x = int(input()) y = int(input()) if n<=k: print(x*n) else: print(x*k + 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,771
s962872565
p04011
u900109664
1561862451
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: 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,772
s383705890
p04011
u970449052
1561838376
Python
Python (3.4.3)
py
Accepted
17
2940
92
n=int(input()) k=int(input()) x=int(input()) y=int(input()) print(min(n,k)*x+max(0,(n-k))*y)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,773
s667841890
p04011
u759412327
1561772771
Python
Python (3.4.3)
py
Accepted
17
2940
119
a = int(input()) b = int(input()) c = int(input()) d = int(input()) if a <= b: print(a*c) else: print(c*b+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,196,774
s590001225
p04011
u474423089
1561770350
Python
Python (3.4.3)
py
Accepted
17
3060
176
def main(): n = int(input()) k = int(input()) x = int(input()) y = int(input()) print(int(x*min(n,k))+(y*max(0,n-k))) if __name__ == '__main__': main()
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,775
s828493002
p04011
u293523199
1561707938
Python
Python (3.4.3)
py
Accepted
20
2940
173
data = [int(input()) for i in range(4)] cost = 0 for i in range(1, data[0]+1): if( i <= data[1] ): cost += data[2] else: cost += data[3] print(cost)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,776
s445193069
p04011
u430223993
1561683487
Python
Python (3.4.3)
py
Accepted
17
3064
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,196,777
s838485160
p04011
u013594089
1561514724
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(n*x) else: print(x*k+(n-k)*y)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,778
s686245846
p04011
u296150111
1561512612
Python
Python (3.4.3)
py
Accepted
17
2940
107
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,196,779
s137769628
p04011
u714300041
1561483973
Python
Python (3.4.3)
py
Accepted
17
3060
138
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,780
s727376186
p04011
u790812284
1561446026
Python
Python (3.4.3)
py
Accepted
17
2940
96
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,781
s102343202
p04011
u263830634
1561428955
Python
Python (3.4.3)
py
Accepted
17
3060
119
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) ans = X * min(K, N) + Y * max(N-K, 0) 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,782
s860684533
p04011
u290211456
1561363664
Python
Python (3.4.3)
py
Accepted
17
3060
143
l = [] for i in range(4): l.append(int(input())) n = l[0] * l[2] if l[0] >= l[1]: print(l[1]*l[2] + (l[0]-l[1])*l[3]) else: print(l[0]*l[2])
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, 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,783
s937829462
p04011
u471212175
1561356015
Python
Python (3.4.3)
py
Accepted
17
2940
138
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) if N <= K: sum = N * X else: sum = K * X + (N - K) * Y print(sum)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,784
s263187885
p04011
u827141374
1561325473
Python
Python (3.4.3)
py
Accepted
17
2940
131
n = int(input()) k = int(input()) x = int(input()) y = int(input()) z = 0 z += min(n, k) * x if n > k: z += (n - k) * y print(z)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, 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,785
s025139555
p04011
u450339194
1561298602
Python
Python (3.4.3)
py
Accepted
17
3060
208
nl = lambda: list(map(int, input().split())) sl = lambda: input().split() n = lambda: int(input()) s = lambda: input() N = n() K = n() X = n() Y = n() if N > K: print(X*K+Y*(N-K)) else: print(X*N)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,786
s958190659
p04011
u323120917
1561249974
Python
Python (3.4.3)
py
Accepted
17
2940
138
n=int(input()) k=int(input()) x=int(input()) y=int(input()) if n>=k: t=n-k; s=x*k; s+=(t*y) print(s) else: print(x*n)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,787
s386281760
p04011
u970308980
1561243096
Python
Python (3.4.3)
py
Accepted
17
2940
185
def abc(): n = int(input()) k = int(input()) x = int(input()) y = int(input()) if n <= k: print(n * x) return print(k * x + (n - k) * y) abc()
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, 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,788
s611579343
p04011
u494927057
1561239736
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(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,789
s134816460
p04011
u377989038
1561161765
Python
Python (3.4.3)
py
Accepted
17
2940
138
n, k, x, y = int(input()), int(input()), int(input()), 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,790
s503629019
p04011
u059210959
1561142945
Python
Python (3.4.3)
py
Accepted
43
5768
813
# encoding:utf-8 import copy import random import bisect #bisect_left これで二部探索の大小検索が行える import fractions #最小公倍数などはこっち import math import sys mod = 10**9+7 sys.setrecursionlimit(mod) # 再帰回数上限はでdefault1000 def LI(): return list(map(int, sys.stdin.readline().split())) def LLI(): return [list(map(int, l.split())) for l in...
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, 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,791
s196034117
p04011
u993587645
1561085462
Python
Python (3.4.3)
py
Accepted
17
2940
129
n = int(input()) k = int(input()) x = int(input()) y = int(input()) if n > k: print(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,792
s085284316
p04011
u116670634
1561083091
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,196,793
s149574678
p04011
u998082063
1560997176
Python
Python (3.4.3)
py
Accepted
20
3060
188
n = int(input()) k = int(input()) x = int(input()) y = int(input()) bill = 0 for i in range(n): i += 1 if k >= i: bill += x elif k < i: bill += y print(bill)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, 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,794
s023115549
p04011
u244419600
1560978429
Python
Python (3.4.3)
py
Accepted
17
2940
258
day_all = int(input()) day_nor = int(input()) pay_nor = int(input()) pay_sar = int(input()) bonus = 0 if day_all > day_nor: bonus = pay_sar * (day_all - day_nor) pay_all = day_nor * pay_nor + bonus else: pay_all = day_all * pay_nor print(pay_all)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, 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,795
s567931970
p04011
u497046426
1560837781
Python
Python (3.4.3)
py
Accepted
17
2940
118
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,196,796
s964787271
p04011
u606045429
1560837115
Python
Python (3.4.3)
py
Accepted
17
2940
111
N, K, X, Y = [int(input()) for _ 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,797
s259968838
p04011
u245870380
1560630479
Python
Python (3.4.3)
py
Accepted
19
2940
156
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) c = 0 for i in range(N): if i < K: c += X else: c += Y print(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,196,798
s531814957
p04011
u619785253
1560531635
Python
Python (3.4.3)
py
Accepted
17
2940
138
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) if N<=K: price = N* X else: price = K * X + (N-K)* Y print(price)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, 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,799
s831147831
p04011
u266171694
1560445122
Python
Python (3.4.3)
py
Accepted
17
2940
109
n = int(input()) k = int(input()) x = int(input()) y = int(input()) print(max(n - k, 0) * y + min(n, k) * 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,800
s824702107
p04011
u934740772
1560425462
Python
Python (3.4.3)
py
Accepted
17
2940
114
N=int(input()) K=int(input()) X=int(input()) Y=int(input()) if N<=K: print(X*N) else: print(X*(K)+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,801
s556076021
p04011
u970308980
1560399560
Python
Python (3.4.3)
py
Accepted
19
3060
225
def abc(): n = int(input()) k = int(input()) x = int(input()) y = int(input()) fee = 0 if n <= k: fee += n * x else: fee += k * x fee += (n - k) * y print(fee) abc()
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, 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,802
s960206080
p04011
u560988566
1560389334
Python
Python (3.4.3)
py
Accepted
17
3060
139
n = int(input()) k = int(input()) x = int(input()) y = int(input()) ans = 0 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,803
s352808671
p04011
u329058683
1560339461
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(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,804
s074849281
p04011
u539517139
1560261509
Python
Python (3.4.3)
py
Accepted
17
2940
90
n=int(input()) k=int(input()) x=int(input()) y=int(input()) print(min(n,k)*x+max(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,805
s374261869
p04011
u102461423
1560217155
Python
Python (3.4.3)
py
Accepted
17
2940
114
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) x = X*N if N > K: x += (Y-X)*(N-K) print(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,806
s390921815
p04011
u371409687
1560145524
Python
Python (3.4.3)
py
Accepted
17
2940
67
n,k,x,y=[int(input()) for i in [0]*4] print(n*x-(x-y)*max([n-k,0]))
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,807
s942839143
p04011
u136811344
1560103757
Python
Python (3.4.3)
py
Accepted
17
2940
101
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,196,808
s148426492
p04011
u107407427
1560096377
Python
Python (3.4.3)
py
Accepted
17
2940
123
n = int(input()) k = int(input()) x = int(input()) y = int(input()) if n <= k: print(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,809
s345994215
p04011
u483896240
1560049196
Python
Python (3.4.3)
py
Accepted
17
2940
145
# -*- coding: utf-8 -*- n, k, x, y = int(input()),int(input()),int(input()),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,810
s329714488
p04011
u150386598
1560037973
Python
Python (3.4.3)
py
Accepted
17
3060
138
s = [int(input()) for i in range(4)] if s[0] > s[1]: print((s[1] * s[2] + (s[0] - s[1]) * s[3])) else: print(s[0]*s[2])
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, 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,811
s586146130
p04011
u203501420
1560025487
Python
Python (2.7.6)
py
Accepted
11
2568
126
n = input() k = input() x = input() y = input() a = n - k b = x * k + y * a if k >= n: print x * n elif k < n: 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,196,812
s825988245
p04011
u400620139
1560013362
Python
Python (3.4.3)
py
Accepted
17
3064
169
n = int(input()) k = int(input()) x = int(input()) y = int(input()) price = 0 if n > k: price += (n-k) * y price += k * x else: price += n * x print(price)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, 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,813
s830161185
p04011
u924308178
1560001323
Python
Python (3.4.3)
py
Accepted
17
2940
120
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) if K<N: print(K*X+(N-K)*Y) else: print(N*X)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,814
s698416577
p04011
u043236471
1559991443
Python
Python (3.4.3)
py
Accepted
17
2940
122
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) print(N*X) if N < K else print(K*X + max(0, N-K)*Y)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,815
s693904137
p04011
u881100099
1559973478
Python
Python (3.4.3)
py
Accepted
17
2940
102
N,K,X,Y=[int(input()) for i in range(1,5)] if (N<=K): sum=N*X else: sum=X*K+Y*(N-K) print(sum)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,816
s002842038
p04011
u513900925
1559964268
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,196,817
s628036763
p04011
u410118019
1559935563
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,196,818
s397081070
p04011
u015316911
1559924835
Python
Python (3.4.3)
py
Accepted
18
3060
189
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) price = 0 if K > N: K = N for i in range(0, K): price += X for i in range(K, N): price += Y print(price)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, 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,819
s742509465
p04011
u997530672
1559873197
Python
Python (3.4.3)
py
Accepted
19
3060
163
n = int(input()) k = int(input()) x = int(input()) y = int(input()) ans = 0 for i in range(n): if i < k: ans += x else: ans += y print(ans)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,820
s219351363
p04011
u399721252
1559845366
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(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,821
s796219828
p04011
u559126797
1559763064
Python
Python (3.4.3)
py
Accepted
17
2940
97
a=[int(input()) for _ in range(4)] answer=min(a[0],a[1])*a[2]+max(0,a[0]-a[1])*a[3] print(answer)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,822
s612401503
p04011
u224156735
1559756261
Python
Python (3.4.3)
py
Accepted
19
2940
139
n=int(input()) k=int(input()) c=int(input()) d=int(input()) ans=0 for i in range(n): if i<k: ans+=c else: ans+=d 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,823
s981474242
p04011
u637918426
1559687057
Python
Python (3.4.3)
py
Accepted
19
2940
176
day, slit, fee1, fee2 = [int(input()) for i in range(4)] total = 0 for j in range(day): if j < slit: total += fee1 else: total += fee2 print(total)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,824
s756748318
p04011
u442068463
1559616600
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: s=x*k+y*(n-k) else: s=x*n print(int(s))
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,825
s453973555
p04011
u623687794
1559585230
Python
Python (3.4.3)
py
Accepted
17
2940
108
n=int(input()) x=int(input()) a=int(input()) b=int(input()) if n<=x: print(n*a) else: print(x*a+(n-x)*b)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,826
s254960761
p04011
u374531474
1559530001
Python
Python (3.4.3)
py
Accepted
17
2940
116
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) print(X * N if N <= K else 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,827
s812318716
p04011
u539675863
1559528858
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(n*x) else: print((x*k)+((n-k)*y))
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,828
s481816828
p04011
u081408595
1559462493
Python
Python (3.4.3)
py
Accepted
17
3064
128
n = int(input()) k = int(input()) x = int(input()) y = int(input()) if n < k: print(n * x) else: print((k * x) + (n - k) * y)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,829
s691024264
p04011
u694810977
1559322650
Python
Python (3.4.3)
py
Accepted
19
2940
177
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) money = 0 for i in range(1, N+1): if i <= K: money += X else: money += Y print(money)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,830
s767905537
p04011
u960653324
1559271138
Python
Python (3.4.3)
py
Accepted
17
2940
138
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) if N >= K: ans = X * K + Y * (N-K) else: ans = X * N print(ans)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,831
s387182577
p04011
u587482466
1559269686
Python
Python (3.4.3)
py
Accepted
28
4188
701
# -*- coding: utf-8 -*- import itertools import sys import math from functools import lru_cache # 1整数 # n = int(input()) # 空白区切り2変数 from queue import Queue from operator import mul from functools import reduce from queue import Queue from operator import mul from functools import reduce from functools import lru_cach...
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, 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,832
s416916372
p04011
u587482466
1559268901
Python
Python (3.4.3)
py
Accepted
38
4444
701
# -*- coding: utf-8 -*- import itertools import sys import math from functools import lru_cache # 1整数 # n = int(input()) # 空白区切り2変数 from queue import Queue from operator import mul from functools import reduce from queue import Queue from operator import mul from functools import reduce from functools import lru_cach...
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, 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,833
s303245825
p04011
u846694620
1559268241
Python
Python (3.4.3)
py
Accepted
18
3060
255
def main(): n = int(input()) k = int(input()) x = int(input()) y = int(input()) r = 0 for i in range(n): if i < k: r += x else: r += y print(r) if __name__ == '__main__': main()
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,834
s743466821
p04011
u073549161
1559268207
Python
Python (3.4.3)
py
Accepted
19
3060
173
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,196,835
s636882289
p04011
u319410662
1559268155
Python
Python (3.4.3)
py
Accepted
17
3060
174
N, = list(map(int,input().split())) K, = list(map(int,input().split())) X, = list(map(int,input().split())) Y, = list(map(int,input().split())) 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,836
s815172361
p04011
u006657459
1559268123
Python
Python (3.4.3)
py
Accepted
17
2940
118
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) ans = min(N, K) * X + max(N - K, 0) * 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,837
s609321300
p04011
u095089755
1559262248
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(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,838
s055377713
p04011
u414558682
1559254061
Python
Python (3.4.3)
py
Accepted
18
2940
261
n = int(input()) k = int(input()) x = int(input()) y = int(input()) # print(n) # print(k) # print(x) # print(y) result = 0 for i in range(n): # print(i) if i < k: result = result + x else: result = result + y print(result)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,839
s853838365
p04011
u816919571
1559246599
Python
Python (3.4.3)
py
Accepted
17
2940
65
n,k,x,y=(int(input()) for i in [0]*4) print(n*x-(x-y)*max(n-k,0))
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,840
s591288780
p04011
u194894739
1559187381
Python
Python (3.4.3)
py
Accepted
17
2940
128
N = int(input()); K = int(input()); X = int(input()); Y = int(input()) if N <= K: print(N*X) else: print(K*X + (N-K)*Y)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,841
s491007406
p04011
u117579775
1559157517
Python
Python (2.7.6)
py
Accepted
10
2568
135
a = [] for i in range(4): a.append(input()) if a[0] > a[1]: print(a[1] * a[2] + (a[0] - a[1]) * a[3]) else: print(a[0] * a[2])
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, 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,842
s845989205
p04011
u449473917
1559139572
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(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,843
s719154659
p04011
u223646582
1559054609
Python
Python (3.4.3)
py
Accepted
17
2940
91
N=int(input()) K=int(input()) X=int(input()) Y=int(input()) print(min(N,K)*X+max(0,N-K)*Y)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,844
s098620337
p04011
u416758623
1559046049
Python
Python (3.4.3)
py
Accepted
17
2940
123
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) if N > K: print(X*K + Y*(N-K)) else: print(X*N)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,845
s431171456
p04011
u501163846
1558931971
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+(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,846
s525803458
p04011
u037221289
1558928249
Python
Python (3.4.3)
py
Accepted
17
2940
119
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) if N > K: print(X*K + Y*(N-K)) else: print(X*N)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,847
s483109117
p04011
u365364616
1558900974
Python
Python (3.4.3)
py
Accepted
18
2940
109
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,196,848
s992778614
p04011
u723180465
1558900172
Python
Python (3.4.3)
py
Accepted
17
2940
110
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,196,849
s847313560
p04011
u765815947
1558899773
Python
Python (3.4.3)
py
Accepted
17
2940
108
[n, k, x, y] = [int(input()) for i 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,850
s747101492
p04011
u558374183
1558796858
Python
Python (3.4.3)
py
Accepted
17
3060
135
l = [int(input()) for i in range(4)] if l[0] <= l[1]: sum = l[0] * l[2] else: sum = l[1] * l[2] + (l[0]-l[1]) * l[3] print(sum)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,851
s721987517
p04011
u366959492
1558759269
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(x*k+(n-k)*y) else: print(n*x)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,852
s892511793
p04011
u570545890
1558730319
Python
Python (3.4.3)
py
Accepted
17
2940
119
n = int(input()) k = int(input()) x = int(input()) y = int(input()) if n >= k: print(k*x+(n-k)*y) else: print(n*x)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,853
s204275035
p04011
u856169020
1558717143
Python
Python (3.4.3)
py
Accepted
19
2940
157
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) ans = 0 for i in range(1, N+1): if i <= K: ans += X else: ans += Y print(ans)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,854
s683679945
p04011
u524747996
1558645314
Python
Python (3.4.3)
py
Accepted
18
2940
102
N, K, X, Y = [int(input()) for _ 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,196,855
s628886462
p04011
u008489560
1558641187
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 * 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,856
s030158876
p04011
u460245024
1558619797
Python
Python (3.4.3)
py
Accepted
17
2940
113
N = int(input()) K = int(input()) X = int(input()) Y = int(input()) ans = X*min(N, K) + Y*max(N-K, 0) 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,857
s325718477
p04011
u802772880
1558579032
Python
Python (3.4.3)
py
Accepted
17
3060
122
n=int(input()) k=int(input()) x=int(input()) y=int(input()) ans=0 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,858
s306191185
p04011
u663014688
1558573052
Python
Python (3.4.3)
py
Accepted
24
3060
198
all_days=int(input()) days1=int(input()) sp_p=int(input()) n_p=int(input()) ans = 0 if all_days <= days1: ans = sp_p * all_days else: ans = days1 * sp_p + (all_days-days1) * n_p 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,859
s964630260
p04011
u381739460
1558550255
Python
Python (3.4.3)
py
Accepted
17
3060
149
n = int(input()) k = int(input()) x = int(input()) y = int(input()) ans = 0 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,196,860
s385179841
p04011
u131406102
1558543864
Python
Python (3.4.3)
py
Accepted
17
2940
103
a = int(input()) b = int(input()) c = int(input()) d = int(input()) print(a*c if a<=b else 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,861
s916616743
p04011
u919633157
1558532028
Python
Python (3.4.3)
py
Accepted
17
2940
55
n,k,x,y=map(int,open(0)) 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,196,862
s490684732
p04011
u115149658
1558527863
Python
Python (3.4.3)
py
Accepted
19
3060
160
n = int(input()) k = int(input()) x = int(input()) y = int(input()) sum = 0 for i in range(0, n): if i < k: sum += x else: sum += y print(sum)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,863
s174729645
p04011
u252773293
1558486314
Python
Python (3.4.3)
py
Accepted
18
3064
243
n=int(input())#泊まる日数 k=int(input())#変更日付 x=int(input()) y=int(input()) a=b=i=0 if n<=k: for i in range(n): a+=x i+=1 else: for i in range(k): a+=x i+=1 i=0 if n>k: for i in range(n-k): a+=y i+=1 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,864
s695946957
p04011
u353652911
1558474748
Python
Python (3.4.3)
py
Accepted
17
2940
92
n,k,x,y=(int(input()) for i in range(4)) if n>=k: c=k*x+(n-k)*y else: c=n*x print(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,196,865
s399421520
p04011
u560135121
1558459676
Python
Python (3.4.3)
py
Accepted
17
2940
55
n,k,x,y=map(int,open(0)) print(min(n,k)*x+max(0,n-k)*y)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,866
s600038248
p04011
u266874640
1558433236
Python
Python (3.4.3)
py
Accepted
17
2940
97
n,k,x,y = [int(input()) for i in range(4)] if n > k: print((n-k)*y+k*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,196,867
s198454967
p04011
u779073299
1558367988
Python
Python (3.4.3)
py
Accepted
17
2940
115
n = int(input()) k = int(input()) x = int(input()) y = int(input()) if k<n: print(x*k+(n-k)*y) else: print(x*n)
p04011
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p> <ul> <li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li> <li><var>Y</var> yen per night, for the <va...
5 3 10000 9000
48000
1,196,868
s346837436
p04011
u073549161
1558328224
Python
Python (3.4.3)
py
Accepted
19
3060
171
n = int(input()) k = int(input()) x = int(input()) y = int(input()) res = 0 for i in range(1, n + 1): if i <= k: res += x else: res += 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,196,869
s153103154
p04011
u940568210
1558289423
Python
Python (3.4.3)
py
Accepted
17
2940
110
N, K, X, Y = int(input()), int(input()), int(input()), int(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,196,870