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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s123011395 | p04011 | u639592190 | 1575955041 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 71 | N,K,X,Y=[int(input()) for i in range(4)]
print(min(N,K)*X+max(0,N-K)*Y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,271 |
s123683764 | p04011 | u639592190 | 1575954896 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 68 | 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,196,272 |
s481060186 | p04011 | u963343620 | 1575917551 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 103 | a, b, c, d = [int(input()) for i in range(4)]
if a-b > 0:
print(b*c + (a-b)*d)
else:
print(a*c) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,273 |
s137021522 | p04011 | u996307903 | 1575774084 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 132 | a = int(input())
b = int(input())
c = int(input())
d = int(input())
e=0
if b>=a:
e = a*c
if b < a:
e= b*c
e = e+(a-b)*d
print(e) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, 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,274 |
s614230489 | p04011 | u235376569 | 1575771276 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 172 | a=int(input())
b=int(input())
c=int(input())
d=int(input())
ans=0
for i in range(a):
if 0<b:
ans+=c
else:
ans+=d
b=b-1
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,275 |
s677629977 | p04011 | u663767599 | 1575741321 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 133 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if K > N:
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,276 |
s061806440 | p04011 | u965436898 | 1575736885 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 153 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
ans = 0
if n > k:
ans += x * k
ans += y * (n - k)
else:
ans += x * n
print(ans) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,277 |
s799326187 | p04011 | u994521204 | 1575727199 | 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((N-K)*Y +K*X)
else:
print(N*X) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,278 |
s733637712 | p04011 | u780475861 | 1575613309 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 167 | import sys
input = sys.stdin.readline
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,279 |
s739736615 | p04011 | u811967730 | 1575600870 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 161 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
total = 0
if K >= N:
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,196,280 |
s572821635 | p04011 | u328090531 | 1575583033 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 151 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
ans = 0
if n <= k:
ans = n * x
else:
ans = k * x + y * (n - k)
print(ans) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,281 |
s332323975 | p04011 | u905582793 | 1575555631 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 90 | n=int(input())
k=int(input())
x=int(input())
y=int(input())
print(max(n-k,0)*y+min(n,k)*x) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,282 |
s449561973 | p04011 | u367373844 | 1575521114 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 324 | stay_day = int(input())
first_stay_day = int(input())
first_stay_cost = int(input())
second_stay_cost = int(input())
if stay_day <= first_stay_day:
cost = first_stay_cost * stay_day
elif stay_day > first_stay_day:
cost = first_stay_cost * first_stay_day + second_stay_cost * (stay_day - first_stay_day)
print(c... | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,283 |
s758592921 | p04011 | u490992416 | 1575518800 | 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(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,284 |
s511362253 | p04011 | u046313635 | 1575500542 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 135 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
S = N - K
if N <= K:
print(N * X)
else:
print(K * X + S * 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,285 |
s697240129 | p04011 | u987164499 | 1575483032 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 219 | from sys import stdin
n = int(stdin.readline().rstrip())
k = int(stdin.readline().rstrip())
x = int(stdin.readline().rstrip())
y = int(stdin.readline().rstrip())
if n <= k:
print(x*n)
else:
print(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,286 |
s627857023 | p04011 | u653792857 | 1575470582 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 143 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
sum = 0
if (n>k):
sum = k*x + (n-k)*y
else:
sum = n* x
print(sum) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,287 |
s519082065 | p04011 | u275212209 | 1575386835 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 115 | 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,288 |
s682672486 | p04011 | u236592202 | 1575381679 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 268 | #N宿泊数
#K:料金X円の日数
#X:料金
#Y:割り増し料金
N=int(input()) #全宿泊日数
K=int(input()) #予定宿泊日数
X=int(input()) #基本料金
Y=int(input()) #割り増し料金
if N>K:
S=K*X+(N-K)*Y
else: #早く帰るとき
S=N*X
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,289 |
s016446020 | p04011 | u806392288 | 1575304859 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 120 | 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,290 |
s933921914 | p04011 | u724428568 | 1575289226 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 124 | N, K, X, Y = map(int, [input() for i in range(4)])
first = min(X * K, X * N)
second = max(Y*(N-K), 0)
print(first + second) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, 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,291 |
s609463632 | p04011 | u815444398 | 1575238317 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 162 | n =int(input())
k =int(input())
x =int(input())
y =int(input())
ans = 0
for i in range(n):
if i < k:
ans += x
else:
ans += y
print(ans)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,292 |
s172921813 | p04011 | u684305751 | 1575150409 | Python | Python (3.4.3) | py | Accepted | 20 | 3316 | 79 | n,k,x,y=map(int,[input() for i in range(4)])
print(k*x+y*(n-k) if n>k else n*x) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,293 |
s079618400 | p04011 | u094948011 | 1575144681 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 215 | N,K,X,Y = [int(input()) for i in range(4)]
if N <= K:
print(N * X)
else:
S = K * X #最初の宿泊金額
p = N - K #残りの日数
s = p * Y #残りの宿泊金額
S += s #足す
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,294 |
s677396344 | p04011 | u166888020 | 1575119429 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 153 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
ans = 0
if N <= K:
ans = N * X
else:
ans = K * X + (N - K) * Y
print(ans)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,295 |
s275497226 | p04011 | u365254117 | 1575077067 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 120 | n, k, x, y = map(int, list(input() for i in range(4)))
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,296 |
s558720599 | p04011 | u339503988 | 1575063569 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 110 | a=int(input())
b=int(input())
c=int(input())
d=int(input())
if a-b<=0:
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,297 |
s116061301 | p04011 | u357949405 | 1575050635 | 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(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,196,298 |
s164125527 | p04011 | u278356323 | 1575050633 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 185 | # ABC044a
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**6)
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,299 |
s497684331 | p04011 | u920387587 | 1574998283 | 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(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,300 |
s581846632 | p04011 | u516447519 | 1574980487 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 151 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
cost = int()
if N > K:
cost = K*X + (N-K)*Y
else:
cost = N*X
print(cost) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,301 |
s250265292 | p04011 | u075155299 | 1574963219 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 117 | n=int(input())
k=int(input())
x=int(input())
y=int(input())
if n<=k:
print(x*n)
elif n>k:
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,302 |
s852740168 | p04011 | u799691369 | 1574913301 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 215 | N, K, X, Y = map(int, open(0).read().split())
before_fee = 0
after_fee = 0
if N >= K:
before_fee = K * X
if N > K:
after_fee = (N-K) * Y
else:
before_fee = N * X
print(before_fee + after_fee) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,303 |
s509757817 | p04011 | u788137651 | 1574874308 | Python | Python (3.4.3) | py | Accepted | 26 | 3572 | 1,423 | #
# ⋀_⋀
# (・ω・)
# ./ U ∽ U\
# │* 合 *│
# │* 格 *│
# │* 祈 *│
# │* 願 *│
# │* *│
#  ̄
#
import sys
sys.setrecursionlimit(10**6)
input=sys.stdin.readline
from math import floor,ceil,sqrt,factorial,log #log2ないyp
from heapq import heappop, heappush, heappushpop
from collections import Counter,defaultd... | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, 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,304 |
s646923593 | p04011 | u633450100 | 1574865371 | 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,196,305 |
s086675081 | p04011 | u690781906 | 1574861079 | 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,306 |
s782853833 | p04011 | u673981655 | 1574820799 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 153 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
t = 0
for i in range(n):
if i+1 >= k+1:
t += y
else:
t += x
print(t)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, 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,307 |
s407997786 | p04011 | u616188005 | 1574785247 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 136 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
if n>k:
price = x*k + y*(n-k)
else:
price = x*n
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,308 |
s059568409 | p04011 | u102960641 | 1574782704 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 101 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
print(min(n,k)*x + max(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,309 |
s455233188 | p04011 | u308650788 | 1574769219 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 132 | import math
n = int(input())
k = int(input())
x = int(input())
y = int(input())
res = min(n, k) * x + max(0, 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,196,310 |
s738592352 | p04011 | u219197917 | 1574728346 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 106 | n, k, x, y = [int(input()) for _ in range(4)]
if n <= k:
print(x * n)
else:
print(x * k + y * (n - k)) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,311 |
s398440205 | p04011 | u239375815 | 1574722744 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 107 | n = int(input())
k = min(n,int(input()))
nk = max(0,n-k)
x = int(input())
y = int(input())
print(k*x+y*nk) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, 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,312 |
s519663632 | p04011 | u609814378 | 1574718331 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 144 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N <= K :
ans = X * N
else :
ans = X * K + Y * (N - K)
print(ans)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,313 |
s971356820 | p04011 | u088974156 | 1574621410 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 108 | a=int(input())
b=int(input())
x=int(input())
y=int(input())
if a>b:
print(b*x+(a-b)*y)
else:
print(a*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,314 |
s174213434 | p04011 | u172035535 | 1574603018 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 100 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
print(x*min(k,n)+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,315 |
s247441174 | p04011 | u141786930 | 1574569804 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 172 | def main():
N = int(input())
K = int(input())
X = int(input())
Y = int(input())
print(min(N, K)*X+max(0, N-K)*Y)
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,316 |
s661231127 | p04011 | u340947941 | 1574438863 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 129 | ##### 解けた #####
N=int(input())
K=int(input())
X=int(input())
Y=int(input())
print(int(N<K)*(N*X)+int(N>=K)*(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,317 |
s139587401 | p04011 | u644972721 | 1574403612 | 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(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,318 |
s198594016 | p04011 | u675073679 | 1574390412 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 138 | #ABC044_A
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,319 |
s035825554 | p04011 | u133327090 | 1574381154 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 113 | n = int(input())
k = int(input())
a = int(input())
b = int(input())
print(a * n if k >= n else a * k + b * (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,320 |
s388224393 | p04011 | u854093727 | 1574358315 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 173 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if K < N:
ans = K * X
ans = ans + (N-K) * Y
print(ans)
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,321 |
s875971985 | p04011 | u503111914 | 1574308318 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 103 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
print(N*X if K>=N 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,322 |
s109017657 | p04011 | u836737505 | 1574300030 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 136 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N<K:
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,196,323 |
s224175676 | p04011 | u143278390 | 1574282153 | 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(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,324 |
s648630514 | p04011 | u580093517 | 1574134985 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 70 | n,k,x,y = [int(input()) for _ in range(4)]
print(n*x-max(0,n-k)*(x-y)) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,325 |
s645768222 | p04011 | u864197622 | 1574128723 | 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,326 |
s856680871 | p04011 | u933129390 | 1574122258 | Python | Python (3.4.3) | py | Accepted | 19 | 3064 | 165 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
ans = 0
for i in range(n):
if i+1>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,196,327 |
s421213584 | p04011 | u409064224 | 1574122219 | 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(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,328 |
s828014003 | p04011 | u617659131 | 1574122164 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 164 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
total = 0
for i in range(1,n+1):
if i <= k:
total += x
else:
total += y
print(total) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,329 |
s514324452 | p04011 | u007263493 | 1574093172 | 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:
answer = n * x
else:
answer = (n-k) * y + k*x
print(answer) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,330 |
s357911451 | p04011 | u287500079 | 1573950859 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 106 | 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,196,331 |
s016598487 | p04011 | u845937249 | 1573949251 | 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,332 |
s127795713 | p04011 | u779728630 | 1573673988 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 127 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N <= K:
print(N * X)
else:
print(K * X + (N-K) * Y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,333 |
s414508088 | p04011 | u672882146 | 1573658371 | Python | Python (3.4.3) | py | Accepted | 18 | 3064 | 117 | 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,334 |
s373626440 | p04011 | u452015170 | 1573623590 | 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 :
ans = X * N
else :
ans = X * K + Y * (N - K)
print(ans) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,335 |
s957661873 | p04011 | u735069283 | 1573622935 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 95 | 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,336 |
s783737697 | p04011 | u052499405 | 1573618672 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 214 | #!/usr/bin/env python3
import sys
sys.setrecursionlimit(10**8)
input = sys.stdin.readline
n = int(input())
k = int(input())
x = int(input())
y = int(input())
ans = min(k, n) * x
ans += max(0, n - k) * y
print(ans) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,337 |
s923616480 | p04011 | u633548583 | 1573566057 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 93 | 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,338 |
s920935655 | p04011 | u633548583 | 1573566022 | 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(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,339 |
s716728656 | p04011 | u390883247 | 1573560184 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 122 | 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,196,340 |
s636606950 | p04011 | u658288444 | 1573489058 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 121 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
if n <= k:
print(x*n)
else:
print(x*k + y*(n-k)) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,341 |
s628406143 | p04011 | u557494880 | 1573429341 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 151 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if K > N:
ans = N*X
print(ans)
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,342 |
s861804547 | p04011 | u090649502 | 1573421667 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 110 | 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,196,343 |
s718546124 | p04011 | u281303342 | 1573262141 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 189 | # python3 (3.4.3)
import sys
input = sys.stdin.readline
# main
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,344 |
s968831415 | p04011 | u545666277 | 1573190377 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 205 | # -*- coding: utf-8 -*-
# 整数の入力
N = int(input())
K = int(input())
X = int(input())
Y = int(input())
sum = 0
for i in range(1, N+1) :
if i <= K :
sum += X
else :
sum += Y
print(sum) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,345 |
s286873157 | p04011 | u663438907 | 1573189623 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 160 | 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,196,346 |
s518179771 | p04011 | u434282696 | 1573160338 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 102 | 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,347 |
s100077509 | p04011 | u050034744 | 1573156773 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 170 | data=[]
for i in range(4):
data.append(int(input()))
if data[0]>=data[1]:
a=data[2]*data[1]
b=data[3]*(data[0]-data[1])
print(a+b)
else:
print(data[2]*data[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,348 |
s571506510 | p04011 | u533039576 | 1573115911 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 121 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
ans = x * min(k, n) + y * max(n - k, 0)
print(ans)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,349 |
s648732083 | p04011 | u350248178 | 1573103026 | 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(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,350 |
s982974958 | p04011 | u637551956 | 1573067460 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 126 | N=int(input())
K=int(input())
X=int(input())
Y=int(input())
if K<=N:
print(round(K*X+(N-K)*Y))
else:
print(round(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,351 |
s485776467 | p04011 | u895536055 | 1573055923 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 129 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N >= K:
print(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,352 |
s955920265 | p04011 | u867848444 | 1572990133 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 95 | n,k,x,y=int(input()),int(input()),int(input()),int(input())
print(x*n if k>=n 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,353 |
s718962712 | p04011 | u940061594 | 1572986053 | Python | Python (3.4.3) | py | Accepted | 18 | 3064 | 138 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N <= K:
M = X * N
else:
M = X * K + Y * (N-K)
print(int(M)) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, 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,354 |
s911822814 | p04011 | u754022296 | 1572910868 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 106 | n, k, x, y = int(input()), int(input()), int(input()), int(input())
print(x * min(n, k) + y * max(0, n-k)) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,355 |
s005701167 | p04011 | u319609701 | 1572904349 | Python | Python (3.4.3) | py | Accepted | 18 | 3192 | 146 | # -*- coding:utf-8 -*-
#入力
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,356 |
s241479399 | p04011 | u914330401 | 1572895215 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 124 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
if n <= k:
print(n*x)
else:
print(k*x + (n-k)*y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,357 |
s676883791 | p04011 | u209619667 | 1572894246 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 154 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
s = 0
for n in range(1,N+1):
if n <= K:
s = s + X
else:
s = s + Y
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,358 |
s772833225 | p04011 | u380284234 | 1572858279 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 132 | # A - 高橋君とホテルイージー / Tak and Hotels (ABC Edit)
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,359 |
s834476328 | p04011 | u897436032 | 1572838333 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 144 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if K > N:
price = N * X
else:
price = K * X + (N-K)*Y
print(str(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,360 |
s718654747 | p04011 | u971237642 | 1572810170 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 232 | # -*- coding: utf-8 -*-
n = int(input())
k = int(input())
x = int(input())
y = int(input())
ans = 0
for i in range(1, n+1):
if i <= k:
# print(x)
ans += x
else:
# print(y)
ans += y
print(ans) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,361 |
s160950462 | p04011 | u467831546 | 1572616577 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 139 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
if k < n:
a = k * x + (n - k) * y
else:
a = n * 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,362 |
s500984381 | p04011 | u923659712 | 1572556960 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 122 | n = int(input())
k = int(input())
x= int(input())
y= int(input())
if n>k:
print(k*x+(n-k)*y)
else:
print(n*x)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,363 |
s638821019 | p04011 | u402467563 | 1572556639 | Python | Python (3.4.3) | py | Accepted | 18 | 3064 | 132 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N>K:
price = K*X + (N-K)*Y
else:
price = N*X
print(price) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,364 |
s605292550 | p04011 | u171115409 | 1572499937 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 182 | # -*- coding: utf-8 -*-
# 整数の入力
N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if(N <= K):
sum = N*X
else:
sum = K*X + (N-K)*Y
print('%d' %(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,365 |
s366047553 | p04011 | u717993780 | 1572459862 | 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(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,366 |
s540821888 | p04011 | u819939299 | 1572411064 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 70 | a,b,c,d=(int(input()) for i in range(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,196,367 |
s191284095 | p04011 | u819939299 | 1572410822 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 77 | a,b,c,d=(int(input()) for i in [0]*4)
print(a*c if a <= b else b*c + (a-b)*d) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,368 |
s384580421 | p04011 | u533713111 | 1572401768 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 156 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
result = 0
if N <= K:
result = X * N
else:result = X * K + Y *(N - K)
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,369 |
s614621920 | p04011 | u911153222 | 1572315901 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 138 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
if n - k >= 0:
print(x * k + y * (n - k))
else:
print(x * n)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,370 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.