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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s071780339 | p04011 | u865413330 | 1551843963 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 161 | import sys
input = sys.stdin.readline
n = int(input())
k = int(input())
x = int(input())
y = int(input())
print(k * x + (n - k) * y) if 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,071 |
s820823105 | p04011 | u363610900 | 1551819480 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 228 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N > K:
total_price = K * X
discount_price = (N - K) * Y
print(total_price + discount_price)
else:
total_price = N * X
print(total_price) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,072 |
s241485859 | p04011 | u864667985 | 1551718096 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 117 | n, k, x, y = [int(input()) for _ in range(4)]
if k < n:
ans = k * x + (n-k) * y
else:
ans = n * x
print(ans)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,073 |
s444705615 | p04011 | u503228842 | 1551682898 | 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,197,074 |
s949016268 | p04011 | u706695185 | 1551664234 | Python | Python (3.4.3) | py | Accepted | 19 | 3316 | 102 | 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,075 |
s096396249 | p04011 | u544050502 | 1551656520 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 80 | N,K,X,Y=[int(input()) for i in range(4)]
print((N-K)*Y+K*X if (N-K)>=0 else N*X) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,076 |
s389881851 | p04011 | u390901416 | 1551632992 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 71 | 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,197,077 |
s780071854 | p04011 | u251123951 | 1551631461 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 102 | n=int(input())
k=int(input())
x=int(input())
y=int(input())
print(n*x) if n<=k 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,078 |
s904279491 | p04011 | u631277801 | 1551616019 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 469 | import sys
stdin = sys.stdin
def li(): return map(int, stdin.readline().split())
def li_(): return map(lambda x: int(x)-1, stdin.readline().split())
def lf(): return map(float, stdin.readline().split())
def ls(): return stdin.readline().split()
def ns(): return stdin.readline().rstrip()
def lc(): return list(ns())
def... | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, 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,079 |
s406976409 | p04011 | u588633699 | 1551593488 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 152 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
pay = 0
for i in range(N):
if i<K:
pay += X
else:
pay += Y
print(pay) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,080 |
s099838072 | p04011 | u619197965 | 1551581298 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 92 | n,k,x,y=[int(input()) for i in range(4)]
if k>n:
print(n*x)
else:
print(k*x+(n-k)*y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,081 |
s693814322 | p04011 | u566574814 | 1551577790 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 126 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N > K:
print(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,082 |
s379904473 | p04011 | u155236040 | 1551408787 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 121 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
if n > k:
print(k*x+(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,083 |
s721440548 | p04011 | u698460655 | 1551402733 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 96 | n,k,x,y = [int(input()) for i in range(4)]
if n >= k:
print(k*x + (n-k)*y)
else:
print(n*x) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,084 |
s667051769 | p04011 | u301302814 | 1551400257 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 144 | # coding: utf-8
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,085 |
s913461201 | p04011 | u370331385 | 1551389443 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 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,086 |
s828492400 | p04011 | u314008046 | 1551342360 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 78 | n,k,x,y=(int(input()) for i in range(4))
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,197,087 |
s737458120 | p04011 | u403984573 | 1551300692 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 108 | N=int(input())
K=int(input())
X=int(input())
Y=int(input())
if K>=N:
print(N*X)
else:
print(X*K+(N-K)*Y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,088 |
s512296120 | p04011 | u610232844 | 1551284052 | Python | Python (3.4.3) | py | Accepted | 20 | 2940 | 216 | max_day, normal_day, pay, discount_pay = [int(input()) for _ in range(4)]
payment = 0
for i in range(max_day):
if i < normal_day:
payment += pay
else:
payment += discount_pay
print(payment)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, 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,089 |
s404870374 | p04011 | u545368057 | 1551195074 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 145 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N <= K:
value = N*X
else:
value = K*X + (N-K)*Y
print(int(value)) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, 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,090 |
s933996091 | p04011 | u706695185 | 1551181101 | Python | Python (3.4.3) | py | Accepted | 18 | 3064 | 116 | n=int(input())
k=int(input())
x=int(input())
y=int(input())
if k >= n:
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,091 |
s712135206 | p04011 | u488178971 | 1551146534 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 232 | # ABC 044 A - 高橋君とホテルイージー / Tak and Hotels (ABC Edit)
N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if K >= N:
ans = N * X
elif N > K:
ans = K * X
ans +=(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,092 |
s966376465 | p04011 | u143492911 | 1551127277 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 135 | n=int(input())
k=int(input())
a=int(input())
b=int(input())
total=0
if n<k:
total+=a*n
else:
total+=a*k+((n-k)*b)
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,093 |
s881847174 | p04011 | u275934251 | 1551122885 | 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 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,094 |
s497869401 | p04011 | u887207211 | 1550978502 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 103 | 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,095 |
s871805003 | p04011 | u023229441 | 1550961269 | Python | Python (3.4.3) | py | Accepted | 18 | 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,096 |
s175508335 | p04011 | u449555432 | 1550948980 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 106 | 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,197,097 |
s372793304 | p04011 | u118642796 | 1550926397 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 157 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
ans = 0
for i in range(1,N+1):
if i<= K:
ans += X
else:
ans += Y
print(ans) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,098 |
s131471126 | p04011 | u987170100 | 1550897915 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 136 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if K > N:
print(N * X)
else:
print(K * X + (N - K) * Y)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,099 |
s595444424 | p04011 | u722535636 | 1550861079 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 90 | 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,197,100 |
s327932281 | p04011 | u465669072 | 1550852139 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 164 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
ans = 0
for i in range(1,n+1):
if i >= 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,101 |
s081720705 | p04011 | u595893956 | 1550815737 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 83 | a=[int(input()) for i in range(4)]
print(a[2]*min(a[0],a[1])+a[3]*max(0,a[0]-a[1])) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,102 |
s290090532 | p04011 | u717001163 | 1550764083 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 102 | 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,103 |
s237780876 | p04011 | u007550226 | 1550685457 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 93 | n,k,x,y = map(int,[input() for _ in range(4)])
if n <= k:print(n*x)
else:print(k*x + (n-k)*y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,104 |
s910764211 | p04011 | u543954314 | 1550679472 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 80 | n, k, x, y = [int(input()) for i in range(4)]
print(min(n, k)*x + max(n-k, 0)*y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,105 |
s790935642 | p04011 | u282228874 | 1550678569 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 98 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
print(min(n,k)*x+max(n-k,0)*y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,106 |
s245388830 | p04011 | u282228874 | 1550678391 | 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,107 |
s463782382 | p04011 | u516272298 | 1550603039 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 123 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
if n > k:
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,108 |
s205629048 | p04011 | u316386814 | 1550574347 | Python | Python (3.4.3) | py | Accepted | 21 | 3316 | 196 | from collections import Counter, defaultdict, deque
n = int(input())
k = int(input())
x = int(input())
y = int(input())
if n <= k:
ans = n * x
else:
ans = k * x + (n - k) * y
print(ans) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,109 |
s039900512 | p04011 | u316386814 | 1550574293 | 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 = 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,110 |
s072684664 | p04011 | u071730284 | 1550540800 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 160 | 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)
print()
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, 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,111 |
s278721399 | p04011 | u186838327 | 1550462512 | Python | Python (3.4.3) | py | Accepted | 20 | 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,197,112 |
s031971251 | p04011 | u952130512 | 1550443347 | 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:
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,113 |
s522166237 | p04011 | u346193734 | 1550438976 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 109 | 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,114 |
s667111069 | p04011 | u604412462 | 1550421230 | Python | Python (3.4.3) | py | Accepted | 20 | 2940 | 127 | 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,115 |
s061980945 | p04011 | u518064858 | 1550265919 | Python | Python (3.4.3) | py | Accepted | 18 | 3064 | 116 | n=int(input())
k=int(input())
x=int(input())
y=int(input())
if n<k:
print(n*x)
else:
print(k*x+(n-k)*y)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,116 |
s280552798 | p04011 | u597374218 | 1550196067 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 65 | n,k,x,y=(int(input()) for _ in [0]*4)
print(n*x-(x-y)*max(n-k,0)) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,117 |
s783759245 | p04011 | u597374218 | 1550195965 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 72 | n,k,x,y=(int(input()) for _ in [0]*4)
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,197,118 |
s290152954 | p04011 | u597374218 | 1550195680 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 68 | 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,119 |
s969825511 | p04011 | u777028980 | 1550170236 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 111 | a=int(input())
b=int(input())
c=int(input())
d=int(input())
if(a>b):
print(b*c+(a-b)*d)
else:
print(a*c)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,120 |
s950641505 | p04011 | u656995812 | 1550136938 | 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(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,121 |
s181408448 | p04011 | u337851472 | 1550012765 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 164 | 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,122 |
s796817706 | p04011 | u169221932 | 1549970033 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 129 | N,K,X,Y=[int(input()) for i in range(4)]
#print(N,K,X,Y)
if N <= K:
cost = N * X
else:
cost = K * X + (N-K) * Y
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,123 |
s518797579 | p04011 | u570018655 | 1549876661 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 133 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
if n > k:
ans = k*x + (n-k)*y
else:
ans = n*x
print(ans) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,124 |
s645850814 | p04011 | u118211443 | 1549830000 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 95 | 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,125 |
s973991784 | p04011 | u859897687 | 1549813491 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 123 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
if n > k:
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,126 |
s327872430 | p04011 | u500297289 | 1549792265 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 144 | """ AtCoder """
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,127 |
s477556807 | p04011 | u367130284 | 1549778262 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 102 | n,k,x,y=int(input()),int(input()),int(input()),int(input())
print(k*x+(n-k)*y) if 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,128 |
s609778481 | p04011 | u796942881 | 1549744838 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 109 | 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,129 |
s275743898 | p04011 | u492030100 | 1549638591 | Python | Python (3.4.3) | py | Accepted | 20 | 2940 | 172 | 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,197,130 |
s375790199 | p04011 | u483645888 | 1549551844 | Python | Python (3.4.3) | py | Accepted | 20 | 3060 | 125 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N > K:
print(X*K+Y*(N-K))
elif N <= K:
print(X*N) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,131 |
s338582325 | p04011 | u951601135 | 1549404275 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 105 | 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,132 |
s604355983 | p04011 | u977389981 | 1549033434 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 115 | 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,133 |
s347766974 | p04011 | u343930666 | 1549014218 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 109 | 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,134 |
s125627749 | p04011 | u679089096 | 1549005428 | Python | Python (3.4.3) | py | Accepted | 20 | 3060 | 168 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
result = 0
for i in range(n):
if i < k:
result += x
else:
result += y
print(result) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,135 |
s893135880 | p04011 | u185896732 | 1548974769 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 113 | n=int(input())
k=int(input())
x=int(input())
y=int(input())
if(n>k):
print(x*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,136 |
s535131377 | p04011 | u676707608 | 1548930477 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 94 | n,k,x,y=int(input()),int(input()),int(input()),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,137 |
s287433075 | p04011 | u239981649 | 1548903620 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 133 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N <= K:
print(N * X)
else:
print(K * X + (N - K) * Y)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,138 |
s604027034 | p04011 | u811156202 | 1548629563 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 123 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N >= K:
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,139 |
s070242601 | p04011 | u223133214 | 1548627630 | Python | Python (3.4.3) | py | Accepted | 20 | 2940 | 116 | n,k,x,y = int(input()),int(input()),int(input()),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,140 |
s961796360 | p04011 | u172873334 | 1548470109 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 147 | 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,197,141 |
s444323316 | p04011 | u353919145 | 1548468366 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 132 | N=eval(input())
K=eval(input())
X=eval(input())
Y=eval(input())
if N<=K:
result=N*X
else:
result=K*X+(N-K)*Y
print(result) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,142 |
s987368327 | p04011 | u950708010 | 1548362631 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 127 | 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) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, 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,143 |
s727774091 | p04011 | u882209234 | 1548159995 | 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(X*N)
else:
print(Y*(N-K)+X*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,144 |
s637600681 | p04011 | u709630872 | 1548100796 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 126 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N - K >= 0:
print(X*K+Y*(N-K))
else:
print(X*N) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,145 |
s331250490 | p04011 | u529518602 | 1548090651 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 134 | 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,146 |
s551306222 | p04011 | u076503518 | 1547947187 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 114 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N <= K: print(X*N)
else: print(X*K+(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,147 |
s674957750 | p04011 | u729133443 | 1547746393 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 63 | n,k,x,y=[int(input())for _ in[0]*4];print(n*x-(x-y)*max(n-k,0)) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,148 |
s777517646 | p04011 | u729133443 | 1547746291 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 66 | n,k,x,y=[int(input())for _ in[0]*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,149 |
s530191633 | p04011 | u171366497 | 1547686958 | Python | Python (3.4.3) | py | Accepted | 19 | 3064 | 209 | N=int(input())
K=int(input())
X=int(input())
Y=int(input())
ans=0
if N>K:
for i in range(K):
ans+=X
for j in range(N-K):
ans+=Y
if N<=K:
for i in range(N):
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,150 |
s304065873 | p04011 | u983918956 | 1547686043 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 112 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
ans = min(K,N)*X + max(0,N - K)*Y
print(ans) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,151 |
s588328521 | p04011 | u445624660 | 1547670623 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 109 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
print((x*k + y*(n-k)) if n > k else n*x)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,152 |
s222055288 | p04011 | u365928729 | 1547523843 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 125 | 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,153 |
s447964684 | p04011 | u033524082 | 1547480702 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 156 | N=int(input())
K=int(input())
X=int(input())
Y=int(input())
ans=0
if N<K:
ans+=X*N
else:
ans+=X*K
for i in range(N-K):
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,154 |
s415348375 | p04011 | u619819312 | 1547477249 | Python | Python (3.4.3) | py | Accepted | 20 | 3060 | 90 | 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,155 |
s224908387 | p04011 | u695857481 | 1547444413 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 129 | 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,156 |
s145255941 | p04011 | u231647664 | 1547329085 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 129 | a = int(input())
b = int(input())
c = int(input())
d = int(input())
if a <= b:
print(a*c)
if a > b:
e = a-b
print(b*c+e*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,157 |
s867235879 | p04011 | u762682474 | 1547125719 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 214 | def execute(n, k, x, y):
return x * min(n, k) + y * max(0, n - k)
if __name__ == '__main__':
n = int(input())
k = int(input())
x = int(input())
y = int(input())
print(execute(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,197,158 |
s866946877 | p04011 | u593063683 | 1546887492 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 145 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
price = 0
if N<=K:
price = X*N
else:
price = X*K + Y*(N-K)
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,197,159 |
s630793250 | p04011 | u813916554 | 1546811925 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 108 | n=int(input())
k=int(input())
x=int(input())
y=int(input())
if n<=k:
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,160 |
s721761454 | p04011 | u658978681 | 1546753900 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 135 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N < K:
ans = N*X
else:
ans = (N - K)*Y + K*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,161 |
s597693892 | p04011 | u533679935 | 1546535988 | Python | Python (3.4.3) | py | Accepted | 20 | 3060 | 114 | x = [int(input()) for i in range(4)]
(print(x[1]*x[2] + (x[0]-x[1]) * x[3]) if x[0] > x[1] else print(x[0]*x[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,162 |
s683344727 | p04011 | u216631280 | 1546481814 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 125 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
if n > k:
print(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,163 |
s185557001 | p04011 | u281303342 | 1546475805 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 99 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
print(X*min(N,K)+Y*max(0,N-K)) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,164 |
s081688136 | p04011 | u597374218 | 1546475131 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 75 | n,k,x,y=(int(input()) for _ in range(4))
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,197,165 |
s472114262 | p04011 | u066455063 | 1546401117 | 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 + (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,166 |
s841068469 | p04011 | u892796322 | 1546312741 | 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,167 |
s345366046 | p04011 | u060936992 | 1546309410 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 112 | n=int(input())
k=int(input())
x=int(input())
y=int(input())
if n>k:
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,168 |
s872435881 | p04011 | u071061942 | 1546302184 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 128 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N <= K:
print(N * X)
else:
print(K * X + (N -K) * Y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,169 |
s797657418 | p04011 | u089032001 | 1546299503 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 107 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
print(min(k, n) * x + max(n-k, 0) * y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,170 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.