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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s432469008 | p04011 | u463775490 | 1568880620 | 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 = n*x
else:
ans = k*x + (n-k)*y
print(int(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,471 |
s690941087 | p04011 | u719840207 | 1568794848 | 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,196,472 |
s885392175 | p04011 | u710907926 | 1568778724 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 129 | a = [int(input()) for i in range(4)]
result = 0
for i in range(a[0]):
result += a[3] if a[1] < i+1 else a[2]
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,473 |
s102407607 | p04011 | u305732215 | 1568778312 | 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(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,474 |
s591097725 | p04011 | u131264627 | 1568777372 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 135 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
if n > k:
print(int(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,475 |
s018415688 | p04011 | u608355135 | 1568732286 | 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(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,476 |
s659186409 | p04011 | u296518383 | 1568692530 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 115 | n,k,x,y=int(input()),int(input()),int(input()),int(input()),
ans=0
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,477 |
s552912235 | p04011 | u460737328 | 1568682808 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 141 | 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,478 |
s165970604 | p04011 | u735233212 | 1568677383 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 133 | #ABC044A
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,479 |
s326205022 | p04011 | u788703383 | 1568675796 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 75 | n,k,x,y= [int(input()) for i in range(4)]
print(n * x + (y-x) * 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,480 |
s547800861 | p04011 | u635540732 | 1568594518 | Python | Python (3.4.3) | py | Accepted | 21 | 3316 | 108 | 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,481 |
s228929043 | p04011 | u480138356 | 1568517384 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 304 | import sys
input = sys.stdin.readline
def main():
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)
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,482 |
s255046009 | p04011 | u694903396 | 1568505067 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 121 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N>K:
print(K*X+Y*(N-K))
else:
print(N*X)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,483 |
s919933041 | p04011 | u354916249 | 1568480517 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 127 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N > K:
print( 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,484 |
s534845948 | p04011 | u503755120 | 1568407341 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 108 | N=int(input())
K=int(input())
X=int(input())
Y=int(input())
if K<N:
print(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,485 |
s161976036 | p04011 | u760767494 | 1568384443 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 112 | N=int(input())
K=int(input())
X=int(input())
Y=int(input())
if N <= K:
a = N*X
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,486 |
s920259693 | p04011 | u760767494 | 1568384134 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 112 | N=int(input())
K=int(input())
X=int(input())
Y=int(input())
if N <= K:
a = N*X
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,487 |
s187901109 | p04011 | u055687574 | 1568265354 | Python | Python (3.4.3) | py | Accepted | 20 | 2940 | 116 | n, k, x, y = [int(input()) for i in range(4)]
if k < n:
print(x * k + y * (n-k))
elif n <= k:
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,488 |
s319996590 | p04011 | u325956328 | 1568262705 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 79 | 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,196,489 |
s315854547 | p04011 | u699699071 | 1568255108 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 159 | N=int(input())
K=int(input())
X=int(input())
Y=int(input())
result=0
for i in range(N):
if i<K:
result+=X
else:
result+=Y
print(result) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,490 |
s255864226 | p04011 | u089376182 | 1568251982 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 173 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
total_amount = 0
for i in range(1, n+1):
total_amount += (x if i <= k else y)
print(total_amount) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, 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,491 |
s724839974 | p04011 | u970082363 | 1568233128 | 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(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,492 |
s988250733 | p04011 | u787456042 | 1568228894 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 54 | N,K,X,Y=map(int,open(0));print([N*X,K*X+(N-K)*Y][K<N]) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,493 |
s228848772 | p04011 | u759412327 | 1568228723 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 70 | 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,196,494 |
s488775257 | p04011 | u008357982 | 1568198071 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 54 | n,k,x,y=map(int,open(0));print([n*x,k*x+(n-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,495 |
s436636082 | p04011 | u143821940 | 1568194588 | 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,496 |
s302045122 | p04011 | u595716769 | 1568178657 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 157 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
out = 0
for i in range(1,n+1):
if i <= k:
out += x
else:
out += y
print(out) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,497 |
s839074514 | p04011 | u592248346 | 1568170977 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 77 | n,k,x,y = [int(input()) for _ in range(4)]
print(k*x+(n-k)*y if n>k else n*x) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,498 |
s033202911 | p04011 | u692690314 | 1568148965 | 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(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,499 |
s946076797 | p04011 | u396495667 | 1568141262 | 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((k*x + (n-k)*y) )
elif n <=k:
print(n*x) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,500 |
s845851504 | p04011 | u862757671 | 1568070551 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 145 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
print((x * k if n - k >= 0 else x * n) + (y * (n - k) if n - k >= 0 else 0)) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,501 |
s125232776 | p04011 | u270144704 | 1568069176 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 114 | N,K,X,Y=int(input()),int(input()),int(input()),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,502 |
s578803404 | p04011 | u993161647 | 1568061634 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 115 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
print(K * X + (N - K) * Y if K < N else N * X) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,503 |
s270850416 | p04011 | u580362735 | 1568048223 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 114 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
print(X*N) if K > 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,504 |
s359766321 | p04011 | u819710930 | 1568042331 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 92 | 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,505 |
s240468942 | p04011 | u322354465 | 1568040399 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 132 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
if n > k:
print(x * k + 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,506 |
s291156899 | p04011 | u597455618 | 1567996413 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 86 | n, k, x, y = (int(input()) for i in range(4))
print(min(n, k) * x + max(0, n - k) * y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,507 |
s085955708 | p04011 | u617203831 | 1567979368 | 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,508 |
s005676880 | p04011 | u951480280 | 1567976838 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 102 | 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,509 |
s376852740 | p04011 | u951480280 | 1567976738 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 107 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
print(k*x + (n-k)*y if n >= k else n*x) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,510 |
s241043265 | p04011 | u084357428 | 1567951224 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 114 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
print(k * x + (n - k) * y if n > k else n * x) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,511 |
s411989332 | p04011 | u117193815 | 1567922879 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 130 | 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,512 |
s726127333 | p04011 | u931489673 | 1567921456 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 173 | days=int(input())
k=int(input())
yen_until_k=int(input())
yen_after_k=int(input())
if days <= k:
print(days*yen_until_k)
else:
print(k*yen_until_k+(days-k)*yen_after_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,513 |
s324749992 | p04011 | u976225138 | 1567920871 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 153 | n, k, x, y = [int(input()) for _ in range(4)]
ans = 0
while n:
if n <= k:
ans += x
else:
ans += y
n -= 1
else:
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,514 |
s972270690 | p04011 | u559103167 | 1567903252 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 104 | n = int(input())
k = int(input())
x = int(input())
y = 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,515 |
s953265089 | p04011 | u992759582 | 1567902064 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 134 | n,k,x,y = map(int,open(0))
price = 0
for i in range(n):
if i+1 <= k :
price += x
else:
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,516 |
s702615858 | p04011 | u074338678 | 1567886506 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 74 | 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,196,517 |
s717124819 | p04011 | u999799597 | 1567871493 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 185 | source = []
for i in range(4):
source.append(input())
N = list(map(int, source))
N, K, X, Y = N[0], N[1], N[2], N[3]
if N <= K:
print(N * X)
else:
print((N - K) * Y + 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,518 |
s905785642 | p04011 | u227641731 | 1567834219 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 104 | N = int(input())
K = int(input())
X = int(input())
Y = 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,519 |
s018031697 | p04011 | u474925961 | 1567826231 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 174 | import sys
if sys.platform =='ios':
sys.stdin=open('input_file.txt')
N=int(input())
K=int(input())
X=int(input())
Y=int(input())
print(N*X-(max((N-K),0)*(X-Y)))
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, 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,520 |
s110134297 | p04011 | u557136512 | 1567793593 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 139 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N <= K:
pay = N * X
else:
pay = K * X + (N-K) * Y
print(pay) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, 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,521 |
s008415792 | p04011 | u177411511 | 1567755279 | Python | Python (3.4.3) | py | Accepted | 21 | 3316 | 249 | import sys
from collections import deque
stdin = sys.stdin
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()
n, k, x, y = [ni() for _ in range(4)]
print(x * min(n, k) + y * max((n - k), 0))
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,522 |
s987924303 | p04011 | u957872856 | 1567714107 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 70 | 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,196,523 |
s731011168 | p04011 | u872056745 | 1567697227 | Python | Python (3.4.3) | py | Accepted | 20 | 3060 | 205 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
x_sum = 0
if n < k:
x_sum = n * x
else:
x_sum = k * x
if n - k > 0:
y_sum = (n - k) * y
else:
y_sum = 0
print(x_sum + y_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,524 |
s186813080 | p04011 | u361841553 | 1567689503 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 224 | def main():
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)
pass
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,525 |
s073367197 | p04011 | u193604641 | 1567655019 | Python | Python (2.7.6) | py | Accepted | 11 | 2568 | 578 | def main():
n, k, x, y = int(raw_input()), int(raw_input()), int(raw_input()), int(raw_input())
total = 0
for i in xrange(1, n+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,196,526 |
s322463934 | p04011 | u539018546 | 1567642237 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 117 | 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,527 |
s910095048 | p04011 | u152638361 | 1567635336 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 107 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
print( min(N*X, K*X) + max(0,Y*(N-K)) ) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,528 |
s903393571 | p04011 | u831873131 | 1567572328 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 133 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
val = 0
for i in range(N):
val += X if i < K else Y
print(val) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, 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,529 |
s184185131 | p04011 | u788023488 | 1567563863 | 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(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,530 |
s243968492 | p04011 | u396391104 | 1567556386 | 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(n*x-(n-k)*(x-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,531 |
s452122028 | p04011 | u134712256 | 1567530598 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 113 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
if n<k:print(x*n)
else: print(k*x + (n-k)*y)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,532 |
s263583939 | p04011 | u131625544 | 1567486133 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 87 | N, K, X, Y = [int(input()) for _ in range(4)]
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,533 |
s239620809 | p04011 | u657971041 | 1567451086 | 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,196,534 |
s191958242 | p04011 | u284999381 | 1567283448 | 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,535 |
s762640380 | p04011 | u116002573 | 1567273273 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 218 | def main():
N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N <= K:
return N * X
else:
return (N-K)*Y + K*X
if __name__ == '__main__':
print(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,536 |
s859188929 | p04011 | u187462782 | 1567224648 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 168 | days = int(input())
boundary = int(input())
fee_before = int(input())
fee_after = int(input())
print(min(days, boundary)*fee_before+max(0, (days-boundary))*fee_after)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, 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,537 |
s134113575 | p04011 | u187462782 | 1567224489 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 207 | days = int(input())
boundary = int(input())
fee_before = int(input())
fee_after = int(input())
if days <= boundary:
print(days*fee_before)
else:
print(boundary*fee_before+(days-boundary)*fee_after)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, 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,538 |
s411625632 | p04011 | u280096880 | 1567204302 | 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,196,539 |
s219378282 | p04011 | u346629192 | 1567187401 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 122 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N <= K:
print(X*N)
else:
print(X*K+Y*(N-K)) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,540 |
s764503959 | p04011 | u045408189 | 1567170747 | 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(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,541 |
s945677231 | p04011 | u835482198 | 1567138325 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 140 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
if n > k:
print(k * x + (n - k) * y)
else:
print(min(k, n) * x)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,542 |
s040160012 | p04011 | u163791883 | 1567119626 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 106 | 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,543 |
s068918969 | p04011 | u900140292 | 1567116139 | Python | Python (3.4.3) | py | Accepted | 17 | 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,196,544 |
s759091578 | p04011 | u033606236 | 1567083139 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 75 | n, k, x, y= [int(input()) for i in range(4)]
print(min(k,n)*x+max(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,545 |
s472160336 | p04011 | u720483676 | 1567047742 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 60 | n,k,x,y=map(int,open(0));print(n*x 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,546 |
s910418777 | p04011 | u556371693 | 1567045146 | 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+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,547 |
s404142613 | p04011 | u691018832 | 1567024447 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 171 | import sys
input = sys.stdin.readline
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,548 |
s848617082 | p04011 | u119655368 | 1566993946 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 133 | a=int(input())
b=int(input())
c=int(input())
d=int(input())
x=0
for i in range(a):
if i < b:
x += c
else:
x += d
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,549 |
s390594221 | p04011 | u670180528 | 1566963698 | Python | Python (3.4.3) | py | Accepted | 22 | 3316 | 55 | n,k,x,y=map(int,open(0));print(x*min(n,k)+y*max(n-k,0)) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,550 |
s419754738 | p04011 | u946644692 | 1566933616 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 153 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
price = 0
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,551 |
s867911981 | p04011 | u936035004 | 1566927569 | 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(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,552 |
s203528532 | p04011 | u334260611 | 1566914489 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 142 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
money = 0
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,553 |
s687093390 | p04011 | u478296955 | 1566909729 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 80 | N, K, X, Y = (int(input()) for i in range(4))
print(X*K+Y*(N-K) if N>K else X*N) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,554 |
s785594529 | p04011 | u478296955 | 1566909674 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 73 | 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,196,555 |
s388504924 | p04011 | u756696693 | 1566872083 | 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,556 |
s366184806 | p04011 | u417958545 | 1566871943 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 190 |
N = int(input()) #連泊
K = int(input()) #日にち
X = int(input())
Y = int(input())
if N <= K:
total_price = (X * N)
else:
total_price = K * X + Y * (N - K)
print(total_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,557 |
s268314816 | p04011 | u053856575 | 1566866140 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 128 | n=int(input())
k=int(input())
x=int(input())
y=int(input())
ans=0
if n>=k:
ans+=k*x
ans+=(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,558 |
s363393046 | p04011 | u126227204 | 1566863520 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 126 | 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,559 |
s304011470 | p04011 | u853185302 | 1566788980 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 84 | N,K,X,Y = [int(input()) for _ in range(4)]
print(X*N if K >= N 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,560 |
s281879586 | p04011 | u901447859 | 1566787927 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 72 | N,K,X,Y=map(int,open(0).read().split())
print(X*min(N,K)+Y*(N-min(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,561 |
s917857906 | p04011 | u097026338 | 1566775590 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 89 | n,k,x,y=[int(input()) for i 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,562 |
s532914485 | p04011 | u957167787 | 1566763919 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 103 | N, K, X, Y = [int(input()) for i 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,563 |
s559848810 | p04011 | u759412327 | 1566700960 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 99 | N,K,X,Y = [int(input()) for i in range(4)]
a = N*X
if K<N:
print(a-(X-Y)*(N-K))
else:
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,564 |
s972244728 | p04011 | u395202850 | 1566694760 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 96 | n, k, x, y = [int(input()) for _ in range(4)]
sum = 0
print(n*x if n-k <= 0 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,565 |
s730937590 | p04011 | u882370611 | 1566672401 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 70 | n,k,x,y = (int(input()) for i in range(4))
print(n*x+(y-x)*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,566 |
s671847259 | p04011 | u784341473 | 1566616817 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 65 | n,k,x,y=(int(input()) for _ 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,567 |
s078130600 | p04011 | u169657264 | 1566608364 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 104 | n, k, x, y = [int(input()) for i in range(4)]
if n <= k:
s = x*n
else:
s = x*k+y*(n-k)
print(s)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,568 |
s161146508 | p04011 | u259334183 | 1566607831 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 131 | n=int(input())
k=int(input())
x=int(input())
y=int(input())
a=0
for l in range(1,n+1):
if l>k:
a+=y
else:
a+=x
print(a) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,569 |
s933425865 | p04011 | u201082459 | 1566606387 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 120 | 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,570 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.