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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s526799952 | p04011 | u063052907 | 1538342099 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 106 | #coding: utf-8
N, K, X, Y = [int(input()) for _ in range(4)]
print(X * K + (N-K) * Y if N >= K else X * N) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,271 |
s727785736 | p04011 | u474270503 | 1538246452 | Python | Python (3.4.3) | py | Accepted | 20 | 3316 | 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,197,272 |
s386023160 | p04011 | u118147328 | 1538162818 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 225 | N = int(input())
#print(N)
K = int(input())
#print(K)
X = int(input())
#print(X)
Y = int(input())
#print(Y)
Z = N - K
#print(Z)
#print()
if Z >= 0:
mae = K * X
ato = Z * Y
print(mae + ato)
else:
print(N * X) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,273 |
s930897081 | p04011 | u099918199 | 1537829791 | 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)
else:
print(k*x + (n-k)* y ) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,274 |
s912639414 | p04011 | u589087860 | 1537825949 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 173 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
ans = 0
for i in range(n):
if i <= k - 1:
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,197,275 |
s250162369 | p04011 | u853900545 | 1537722089 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 95 | n,k,x,y = map(int,open(0).read().split())
if n>k:
print(k*x + (n-k)*y)
else:
print(n*x) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,276 |
s205472633 | p04011 | u394482932 | 1537667489 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 67 | n,k,x,y=[int(input())for _ in range(4)];print(n*x-(x-y)*max(n-k,0)) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,277 |
s914865195 | p04011 | u394482932 | 1537667407 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 70 | n,k,x,y=[int(input())for i in range(4)];print(min(n,k)*x+max(0,n-k)*y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,278 |
s090080414 | p04011 | u394482932 | 1537667342 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 70 | n,k,x,y=[int(input())for i in range(4)]
print(min(n,k)*x+max(0,n-k)*y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,279 |
s633228088 | p04011 | u140342018 | 1537558261 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 162 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
sum = 0
for i in range(n):
if i<k:
sum += x
else:
sum += y
print(sum) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,280 |
s378825325 | p04011 | u608088992 | 1537555518 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 121 | In = [int(input()) for _ in range(4)]
print(In[0] * In[2] if In[0] <= In[1] else In[1] * In[2] + (In[0] - In[1]) * In[3]) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,281 |
s335539161 | p04011 | u756569003 | 1537487200 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 104 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
print(min(N, K)*X + max(0, N-K)*Y)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,282 |
s572437476 | p04011 | u519849839 | 1537450633 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 113 | n,k,x,y=int(input()),int(input()),int(input()),int(input())
if n<k+1:
print(n*x)
else:
print(k*x+(n-k)*y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,283 |
s361658336 | p04011 | u457901067 | 1537443306 | 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,197,284 |
s351592935 | p04011 | u505420467 | 1537399329 | 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*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,197,285 |
s623067232 | p04011 | u518556834 | 1537231938 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 115 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
c = n*x
if n > k:
c -= (n-k) * (x-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,197,286 |
s782640898 | p04011 | u611249982 | 1537179269 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 143 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
if n < k:
a, b = n, 0
else:
a, b = k, n - k
print(a * x + b * y)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,287 |
s656789411 | p04011 | u177398299 | 1536986408 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 86 | n, k, x, y = [int(input()) for _ in range(4)]
print(min(n, k) * x + max(n - k, 0) * y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,288 |
s788655183 | p04011 | u932465688 | 1536967494 | 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)
else:
print(K*X + (N-K)*Y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,289 |
s987333774 | p04011 | u304561065 | 1536817746 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 112 | N=int(input())
K=int(input())
X=int(input())
Y=int(input())
if N<=K:
print(N*X)
else:
print(K*X+(N-K)*Y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,290 |
s195417841 | p04011 | u177040005 | 1536771775 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 144 | 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,197,291 |
s651480700 | p04011 | u466105944 | 1536680790 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 124 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
if n < k:
print(n*x)
else:
print(k*x + (n-k)*y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,292 |
s115723438 | p04011 | u863841238 | 1536611290 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 126 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
if n < k:
print (n*x)
else:
print (k*x + (n-k)*y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,293 |
s785808616 | p04011 | u102126195 | 1536593947 | 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 + Y * (N - K)) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,294 |
s696204718 | p04011 | u787562674 | 1536535392 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 109 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
print(K*X + (N-K)*Y if K <= N else N*X)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,295 |
s716005822 | p04011 | u294000907 | 1536377553 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 166 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
n = int(input())
k = int(input())
x = int(input())
y = int(input())
if n > k:
print(k*x+(n-k)*y)
else:
print(n*x)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,296 |
s272082901 | p04011 | u016393440 | 1536259792 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 159 | a = int(input())
b = int(input())
c = int(input())
d = int(input())
if a > b:
ans = c * b + d * (a - b)
print(ans)
else:
ans = c * a
print(ans) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,297 |
s680513783 | p04011 | u017810624 | 1536028729 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 83 | a,b,c,d=(int(input()) for _ in range(4))
if a<=b:print(a*c)
else:print(b*c+(a-b)*d) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,298 |
s031743004 | p04011 | u601082779 | 1535994221 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 63 | a,b,c,d=[int(input())for i in[0]*4]
print(a*c-(c-d)*max(a-b,0)) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,299 |
s603947050 | p04011 | u366644013 | 1535830155 | 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(k*x+(n-k)*y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,300 |
s477452940 | p04011 | u525423408 | 1535693912 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 112 | n=int(input())
k=int(input())
x=int(input())
y=int(input())
if n<=k:
print(n*x)
else:
print(k*x+(n-k)*y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,301 |
s824455731 | p04011 | u331036636 | 1535432261 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 93 | n=int(input())
k=int(input())
x=int(input())
y=int(input())
print([n*x-(n-k)*(x-y),n*x][n<k]) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,302 |
s185075607 | p04011 | u386819480 | 1535216668 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 113 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
print(n*x) if k >= n else print(k*x+(n-k)*y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,303 |
s465587393 | p04011 | u769852547 | 1534821092 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 132 | n = [int(input()) for _ in range(4)]
if n[0] > n[1]:
print(n[3] * (n[0]-n[1]) + n[2] * n[1])
else:
print(n[2]*n[0])
exit(0) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,304 |
s403274513 | p04011 | u050428930 | 1534524302 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 118 | n=int(input())
k=int(input())
x=int(input())
y=int(input())
if n>=k:
print(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,197,305 |
s324942405 | p04011 | u759651152 | 1534210634 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 249 | #-*-coding:utf-8-*-
def main():
n = int(input())
k = int(input())
x = int(input())
y = int(input())
if k < n:
ans = k * x + (n - k) * y
else:
ans = n * x
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,197,306 |
s954182655 | p04011 | u277802731 | 1534016838 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 136 | #44a
n = int(input())
k = int(input())
x = int(input())
y = 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,197,307 |
s671400677 | p04011 | u214617707 | 1533999944 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 108 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
print(min(k, n) * x + max(0, n - k) * y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,308 |
s666739771 | p04011 | u181668771 | 1533939806 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 154 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
sum = 0
if(N>K):
sum = K*X
N-=K
sum += N*Y
else:
sum = N*X
print(sum)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,309 |
s804431714 | p04011 | u278864208 | 1533692154 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 149 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
res = 0
if N <= K:
res += N * X
else:
res += K * X + (N-K) * Y
print(res) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,310 |
s692169036 | p04011 | u879870653 | 1533659822 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 159 | n=int(input())
k=int(input())
x=int(input())
y=int(input())
ans = 0
for i in range(n):
if i+1<=k:
ans += x
else :
ans += y
print(ans)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,311 |
s010188109 | p04011 | u665190342 | 1533495540 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 184 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N >= K :
result = (X * K) + ((N - K) * Y)
print(result)
elif N < K :
result = X * N
print(result) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,312 |
s244785841 | p04011 | u690536347 | 1533347365 | 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+y*(n-k)) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,313 |
s020516593 | p04011 | u146382803 | 1533318344 | 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,197,314 |
s447682402 | p04011 | u780364430 | 1533238228 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 117 | a = [int(input()) for _ in range(4)]
if a[0] < a[1]:
print(a[0]*a[2])
else:
print(a[1]*a[2]+(a[0]-a[1])*a[3]) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,315 |
s616060910 | p04011 | u761989513 | 1533213679 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 110 | n, k, x, y = map(int, [input() for _ in range(4)])
if n > k:
print(k * x + (n - k) * y)
else:
print(n * x) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,316 |
s361517542 | p04011 | u574050882 | 1533168683 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 121 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N > K:
print(K*X + (N-K)*Y)
else:
print(N*X)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,317 |
s380884129 | p04011 | u434500430 | 1533057608 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 124 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N >= K:
print(K*X + (N-K)*Y)
else:
print(N*X) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,318 |
s656936043 | p04011 | u966000628 | 1532979528 | 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(N*X)
else:
print(K*X+Y*(N-K)) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,319 |
s496634703 | p04011 | u004025573 | 1532881686 | 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+y*(n-k)) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,320 |
s967998352 | p04011 | u599547273 | 1532879501 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 80 | n, k, x, y = [int(input()) for i in range(4)]
print(n*x - (x-y)*(max(0, n-k)))
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,321 |
s186045023 | p04011 | u052347048 | 1532658158 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 166 | lis = [int(input()) for i in range(4)]
if lis[0] > lis[1]:
print(lis[1]*lis[2]+(lis[0]-lis[1])*lis[3])
else:
print(lis[1]*lis[2]+(lis[0]-lis[1])*lis[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,197,322 |
s595563722 | p04011 | u653642801 | 1532397884 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 215 |
def main():
n = int(input())
k = int(input())
x = int(input())
y = int(input())
if n > k:
print(k * x + (n-k)*y)
else:
print(n*x)
if __name__ == "__main__":
main()
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,323 |
s552884015 | p04011 | u415905784 | 1532397863 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 110 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
print(min(N, K) * X + (max(N - K, 0)) * Y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,324 |
s909898754 | p04011 | u439396449 | 1532397790 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 111 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
print(X * min(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,197,325 |
s880443284 | p04011 | u419686324 | 1532397759 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 108 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
print(min(K, N) * X + max(0, N - K) * Y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,326 |
s974260483 | p04011 | u006657459 | 1532397710 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 109 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
print(X * min(K, N) + Y * max(N - K, 0)) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,327 |
s732550168 | p04011 | u317785246 | 1532301408 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 121 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
a = min(n , k) * x
b = max(n - k, 0) * y
print(a + b) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,328 |
s606113325 | p04011 | u562935282 | 1532245534 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 95 | n, k, x, y = map(int, list(input() for _ in range(4)))
print(min(k, n) * x + max(n - k, 0) * y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,329 |
s640795126 | p04011 | u636775911 | 1532034042 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 139 | #coding;utf-8
n=[]
for i in range(4):
n.append(int(input()))
if(n[0]>n[1]):
print(n[2]*n[1]+n[3]*(n[0]-n[1]))
else:
print(n[2]*n[0])
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,330 |
s034251626 | p04011 | u379689509 | 1531923550 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 157 | N =int(input())
K =int(input())
X =int(input())
Y =int(input())
if N <= K:
a = N * X
print(a)
elif N > K:
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,197,331 |
s718219163 | p04011 | u136395536 | 1531718555 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 149 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N<=K:
ans = X*N
else:
ans = K*X + (N-K)*Y
print(ans) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,332 |
s287029176 | p04011 | u624475441 | 1531579408 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 69 | import sys
n,k,x,y=map(int,sys.stdin)
print(x*min(n,k)+(n-k)*(n>k)*y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,333 |
s956660156 | p04011 | u099566485 | 1531422581 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 112 | n=int(input())
k=int(input())
x=int(input())
y=int(input())
if n<=k:
print(n*x)
else:
print(k*x+(n-k)*y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,334 |
s521937437 | p04011 | u622255286 | 1531368932 | Python | Python (2.7.6) | py | Accepted | 10 | 2568 | 134 | n = int(raw_input())
k = int(raw_input())
x = int(raw_input())
y = int(raw_input())
if n <= k:
print(x*n)
else:
print(x*k+y*(n-k)) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,335 |
s163214289 | p04011 | u232852711 | 1531363740 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 103 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
print(min(n, k)*x + max(0, n-k)*y)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,336 |
s746514624 | p04011 | u029315034 | 1531193377 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 133 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
if n < k:
print(n * x)
else:
print(k * x + (n - k) * y)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,337 |
s933154048 | p04011 | u846150137 | 1531100041 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 90 | a=int(input())
b=int(input())
c=int(input())
d=int(input())
print(min(a,b)*c+max(a-b,0)*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,197,338 |
s546300597 | p04011 | u627417051 | 1531063899 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 125 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N > K:
print(K * X + (N - K) * Y)
else:
print(N * X) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,339 |
s528174988 | p04011 | u118605645 | 1531012544 | Python | Python (3.4.3) | py | Accepted | 20 | 3064 | 179 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
total = 0
for i in range(N):
if i <= (K - 1):
total += X
else:
total += Y
print(total) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,340 |
s034796059 | p04011 | u050428930 | 1530938390 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 90 | n=int(input())
k=int(input())
x=int(input())
y=int(input())
print(min(n,k)*x+max(0,n-k)*y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,341 |
s626999015 | p04011 | u785220618 | 1530917180 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 133 | # -*- coding: utf-8 -*-
n, k, x, y = [int(input()) for _ in range(4)]
if k < n:
print(x * k + y * (n-k))
else:
print(x * n)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,342 |
s087465159 | p04011 | u931636178 | 1530878196 | 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(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,197,343 |
s144539963 | p04011 | u745514010 | 1530753507 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 116 | n=int(input())
k=int(input())
x=int(input())
y=int(input())
z=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,197,344 |
s750651847 | p04011 | u102547855 | 1530718867 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 140 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if K>= N:
res = X*N
else:
res = (X*K) + (Y*(N-K))
print (res)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,345 |
s407454582 | p04011 | u064408584 | 1530612954 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 92 | n=int(input())
k=int(input())
x=int(input())
y=int(input())
print(min(k,n)*x+max(0,(n-k)*y)) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,346 |
s547592991 | p04011 | u588341295 | 1530571467 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 163 | # -*- coding: utf-8 -*-
N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N - K > 0:
print(K * X + ((N - K) * Y))
else:
print(N * X) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,347 |
s212326168 | p04011 | u982517812 | 1530568876 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 118 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N >= K:
print(X*K+Y*(N-K))
else: print(X*N) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,348 |
s278691123 | p04011 | u409064224 | 1530316621 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 119 | 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,197,349 |
s883530588 | p04011 | u944209426 | 1530310838 | 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,197,350 |
s133711577 | p04011 | u832039789 | 1529701206 | 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>=0:
print(K*X+(N-K)*Y)
else:
print(N*X) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,351 |
s952648846 | p04011 | u333139319 | 1529603086 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 148 | a=[input() for i in range(4)]
n=int(a[0])
k=int(a[1])
x=int(a[2])
y=int(a[3])
cost=0
if n<=k:
cost=x*n
else:
cost=x*k+y*(n-k)
print(cost)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,352 |
s074135588 | p04011 | u114954806 | 1529596767 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 94 | N=int(input())
K=int(input())
X=int(input())
Y=int(input())
print(K*X+(N-K)*Y if N>K else N*X) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,353 |
s616085421 | p04011 | u108808596 | 1529553837 | Python | Python (2.7.6) | py | Accepted | 10 | 2568 | 109 | N=int(raw_input())
K=int(raw_input())
X=int(raw_input())
Y=int(raw_input())
a = min(N,K)
print X*a + Y*(N-a) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,354 |
s478415943 | p04011 | u760794812 | 1529435092 | 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:
total = n*x
else:
total = k*x + (n-k)*y
print(total) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,355 |
s137095418 | p04011 | u698479721 | 1529366194 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 118 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N <= K:
print(X*N)
else:
print(X*K+Y*(N-K)) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,356 |
s492823125 | p04011 | u551373727 | 1529172399 | 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,197,357 |
s883077813 | p04011 | u724892495 | 1529110680 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 100 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
print(min(K, N)*X+max(0, N-K)*Y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,358 |
s610132238 | p04011 | u444856278 | 1528915430 | Python | Python (3.4.3) | py | Accepted | 20 | 2940 | 124 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
if n > k:
print(x*k + y*(n-k))
else:
print(x*n) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,359 |
s711500358 | p04011 | u864047888 | 1528813208 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 151 | 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+=y
else:
ans+=x
print(ans) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,360 |
s507372713 | p04011 | u205561862 | 1528812214 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 71 | N,K,X,Y=[int(input()) for i in range(4)];print([K*X+(N-K)*Y,N*X][N<=K]) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,361 |
s315316586 | p04011 | u403301154 | 1528777957 | 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,197,362 |
s022203762 | p04011 | u894440853 | 1528374949 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 139 | N, K, X, Y = map(int, [input() for _ in range(4)])
ans = 0
for n in range(N):
if n+1 >= K+1:
ans += Y
else:
ans += X
print(ans) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,363 |
s479691517 | p04011 | u603234915 | 1528323511 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 147 | l = [int(input()) for i in range(4)]
if l[0]<=l[1]:
print('{}'.format(l[0]*l[2]))
else:
print('{}'.format(l[1]*l[2]+(l[0]-l[1])*l[3]))
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,364 |
s905785165 | p04011 | u136090046 | 1528164740 | 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,197,365 |
s971342738 | p04011 | u657913472 | 1528104859 | Python | Python (2.7.6) | py | Accepted | 10 | 2568 | 78 | n=input()
k=input()
print(n if n<k else k)*input()+(0 if n<k else n-k)*input() | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,366 |
s570713551 | p04011 | u657913472 | 1528104846 | Python | Python (2.7.6) | py | Accepted | 10 | 2568 | 79 | n=input()
k=input()
print (n if n<k else k)*input()+(0 if n<k else n-k)*input() | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,367 |
s863821024 | p04011 | u443569380 | 1528070597 | 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(K * X + (N - K) * Y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,368 |
s954166868 | p04011 | u552122040 | 1527969689 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 130 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
if n <= k:
print(n * x)
else:
print(k * x + (n - k) * y)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,369 |
s699194799 | p04011 | u288087195 | 1527893035 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 155 | a= [int(input()) for i in range(4)]
#print(a)
#print(a[0],a[1],a[2],a[3])
if a[1] > a[0]:
a[1] = a[0]
sum = a[1]*a[2] + a[3]*(a[0]-a[1])
print(sum) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,370 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.