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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s817123135 | p04011 | u564060397 | 1558285117 | 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:
print(b*c+d*(a-b))
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,871 |
s583228065 | p04011 | u391731808 | 1558190413 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 68 | N,K,X,Y=[int(input()) for _ in [0]*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,872 |
s246199796 | p04011 | u760794812 | 1558187549 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 142 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
if n <= k:
Answer = n*x
else:
Answer = k*x + (n-k)*y
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,873 |
s674024655 | p04011 | u864453204 | 1558146110 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 144 | l = []
for _ in range(4):
l.append(int(input()))
if l[0] > l[1]:
print(l[1] * l[2] + l[-1] * (l[0] - l[1]))
else:
print(l[0] * l[2]) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,874 |
s029313845 | p04011 | u042716570 | 1558069311 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 137 | 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,875 |
s701131682 | p04011 | u346395915 | 1558059760 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 86 | n, k, x, y = [int(input()) for i in range(4)]
print(k*x + (n-k)*y if n >= k else n*x) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,876 |
s507788146 | p04011 | u933341648 | 1557975384 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 99 | n,k,x,y = [int(input()) for i in range(4)]
if n <= k:
print(n*x)
else:
print(k*x + (n-k)*y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,877 |
s694135997 | p04011 | u977193988 | 1557957206 | 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,878 |
s362847444 | p04011 | u483640741 | 1557951523 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 175 | Alldays=int(input())
days1=int(input())
cost1=int(input())
cost2=int(input())
if Alldays-days1<0:
print(Alldays*cost1)
else:
print(days1*cost1+(Alldays-days1)*cost2)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,879 |
s324486929 | p04011 | u379959788 | 1557936469 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 139 | #A問題
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,196,880 |
s071502229 | p04011 | u765590009 | 1557894821 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 237 | # -*- coding: utf-8 -*-
# 整数の入力
n = int(input())
k = int(input())
x = int(input())
y = int(input())
# 計算
sum = 0
for num in range(n) :
if num <= k-1 :
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,881 |
s291674017 | p04011 | u701318346 | 1557892731 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 139 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
amount = 0
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,882 |
s757050111 | p04011 | u363992934 | 1557880637 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 126 | a = int(input())
b = int(input())
c = int(input())
d = int(input())
if(a > b):
print((a-b)*d+(b)*c)
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,883 |
s692894103 | p04011 | u903948194 | 1557801989 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 124 | n = [0] * 4
for i in range(4):
n[i] = int(input())
n, k, x, y = n
print(x * (n if n <= k else k) + 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,884 |
s180093793 | p04011 | u311379832 | 1557618564 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 166 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
ans = K * X
if N > K:
ans += (N - K) * Y
elif N < K:
ans = ans - ((K - 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,885 |
s945982156 | p04011 | u278886389 | 1557347480 | 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,886 |
s259314989 | p04011 | u233183615 | 1557318526 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 99 | *a,= [int(input()) for i in range(4)]
print(a[1]*a[2]+(a[0]-a[1])*a[3] if a[0]>a[1] else a[0]*a[2]) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,887 |
s133733422 | p04011 | u504562455 | 1557256246 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 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,196,888 |
s347708647 | p04011 | u064246852 | 1557189151 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 114 | N=int(input())
K=int(input())
X=int(input())
Y=int(input())
if N <= K:
print(X*N)
else:
print(X*K+Y*(N-K)) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,889 |
s172135220 | p04011 | u041196979 | 1557187297 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 113 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
x = min(N, K)
y = N - x
print(X * x + Y * 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,890 |
s256755359 | p04011 | u532966492 | 1557173169 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 71 | N,K,X,Y=[int(input()) for _ in range(4)];print(min(N,K)*X+max(N-K,0)*Y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,891 |
s067429900 | p04011 | u581187895 | 1557167740 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 136 | arr = [int(input()) for i in range(4)]
if arr[0] < arr[1]:
print(arr[0]*arr[2])
else:
print(arr[1]*arr[2] + (arr[0]-arr[1])*arr[3])
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,892 |
s454779400 | p04011 | u806855121 | 1557152859 | Python | Python (3.4.3) | py | Accepted | 19 | 3316 | 100 | 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,893 |
s434598164 | p04011 | u185331085 | 1557125443 | Python | Python (3.4.3) | py | Accepted | 20 | 3316 | 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,196,894 |
s757932363 | p04011 | u875347753 | 1557119410 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 148 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if K >= N:
print(X * N)
exit()
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,895 |
s302908700 | p04011 | u300637346 | 1557112866 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 94 | [N, K, X, Y] = [int(input()) for i in range(4)]
s = X*N if N <= K else X*K+Y*(N-K)
print(s)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,896 |
s523538927 | p04011 | u315703650 | 1557037619 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 95 | n,k,x,y = [int(input()) for _ in range(4)]
if n>k:
print(k*x+(n-k)*y)
else:
print(n*x)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,897 |
s436725826 | p04011 | u315703650 | 1557037327 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 136 | N,K,X,Y = [int(input()) for _ in range(4)]
cnt = 0
for i in range(N):
if i<K:
cnt += X
else:
cnt += Y
print(cnt) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,898 |
s848001311 | p04011 | u322185540 | 1557018995 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 96 | n,k,x,y = [int(input())for i in range(4)]
if n <= k:
print(n*x)
else:
print(k*x+(n-k)*y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,899 |
s247292410 | p04011 | u131666536 | 1557006350 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 173 | # -*- coding: utf-8 -*-
n = int(input())
k = int(input())
x = int(input())
y = int(input())
pay = 0
if n-k < 0:
pay = n*x
else:
pay = k*x + (n-k)*y
print(pay) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,900 |
s678530185 | p04011 | u470735879 | 1556994347 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 131 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
if k < n:
print(x * k + (n - k) * y)
else:
print(n * x) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,901 |
s791717717 | p04011 | u182047166 | 1556972222 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 163 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
ans = 0
for i in range(N):
if i < K:
ans += X
else:
ans += Y
print(ans) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,902 |
s876903978 | p04011 | u271469978 | 1556950118 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 118 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
print(x * n if n <= k else (x * k) + y * (n - k))
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,903 |
s469106593 | p04011 | u203927510 | 1556937300 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 168 | N = int(input())
K = int(input())
x = int(input())
y = int(input())
res = 0
for i in range(N):
if (i < K):
res += x
else:
res += y
print(res)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,904 |
s579501642 | p04011 | u167751176 | 1556924952 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 163 | def main():
N = int(input())
K = int(input())
X = int(input())
Y = int(input())
ans = X*min(N,K)+Y*max(N-K,0)
print(ans)
if __name__ == '__main__':
main() | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,905 |
s454880997 | p04011 | u039360403 | 1556873239 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 96 | n=int(input())
k=int(input())
x=int(input())
y=int(input())
print(x*n 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,906 |
s686931330 | p04011 | u621674426 | 1556852499 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 144 | list = list(int(input()) for i in range(4))
print(list[0]*list[2] if list[0] <= list[1] else list[1] * list[2] + (list[0] - list[1]) * list[3])
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,907 |
s895522484 | p04011 | u211236379 | 1556849876 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 83 | l = [int(input()) for i in range(4)]
print(l[0]*l[2]-max(l[0]-l[1],0)*(l[2]-l[3]))
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,908 |
s466504799 | p04011 | u592248346 | 1556838812 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 119 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
if n>k:
print(x*k+y*(n-k))
else:
print(x*n) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,909 |
s437541435 | p04011 | u734548018 | 1556831776 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 115 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
if n<=k:
print(n*x)
else:
print(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,910 |
s834923394 | p04011 | u565438278 | 1556761927 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 172 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
amount = 0
if N <= K:
K = N
L = 0
else:
L = N - K
amount = K * X + L * Y
print(amount) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,911 |
s207478068 | p04011 | u589381719 | 1556757823 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 125 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N <= K:
print(N*X)
else:
print(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,912 |
s057743163 | p04011 | u507116804 | 1556677652 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 117 | n=int(input())
k=int(input())
x=int(input())
y=int(input())
if n<=k:
sum=n*x
else:
sum=k*x+(n-k)*y
print(sum) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,913 |
s537647990 | p04011 | u432805419 | 1556672324 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 118 | a = int(input())
b = int(input())
c = int(input())
d = int(input())
if a > b:
print(b*c+(a-b)*d)
else:
print(a*c) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,914 |
s485913829 | p04011 | u346395915 | 1556670964 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 184 | 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,915 |
s852553050 | p04011 | u739721456 | 1556650478 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 117 | n=int(input())
k=int(input())
x=int(input())
y=int(input())
if n<=k:
ans=n*x
else:
ans=k*x+(n-k)*y
print(ans) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,916 |
s319308123 | p04011 | u017271745 | 1556648982 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 113 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
print(X * (min(N, K)) + Y * (max(0, N - K))) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,917 |
s115851562 | p04011 | u108377418 | 1556594684 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 217 | def main():
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)
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,918 |
s006875037 | p04011 | u264625952 | 1556591107 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 189 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
cost = 0
day = 0
while day < N:
if(day < K):
cost += X
else:
cost += Y
day += 1
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,919 |
s705214746 | p04011 | u949414593 | 1556542657 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 117 | n=int(input())
k=int(input())
x=int(input())
y=int(input())
if n <= k:
print(x*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,920 |
s126957891 | p04011 | u804085889 | 1556508496 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 96 | n,k,x,y = [int(input()) for i in range(4)]
if n > k:
print(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,921 |
s112596139 | p04011 | u655834330 | 1556505849 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 289 |
def read_input():
n = int(input())
k = int(input())
x = int(input())
y = int(input())
return n, k, x, y
def submit():
n, k, x, y = read_input()
c_x = min(n, k)
c_y = max(0, n - k)
print(c_x * x + c_y * y)
if __name__ == '__main__':
submit()
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,922 |
s658337536 | p04011 | u442030035 | 1556498144 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 146 | 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,923 |
s139635721 | p04011 | u733337827 | 1556465569 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 110 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
print(min(K, N) * X + max((N - K), 0) * Y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,924 |
s262250148 | p04011 | u710789518 | 1556448731 | 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(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,925 |
s670153852 | p04011 | u550943777 | 1556401510 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 98 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
print(x*min(n,k)+y*max(n-k,0)) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,926 |
s735891784 | p04011 | u732870425 | 1556389929 | 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:
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,927 |
s174230060 | p04011 | u732870425 | 1556389744 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 143 | n=int(input())
k=int(input())
x=int(input())
y=int(input())
yen = 0
for i in range(n):
if i < k:
yen += x
else:
yen += y
print(yen) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,928 |
s146155260 | p04011 | u698771758 | 1556389062 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 77 | a=int(input())
b=min(a,int(input()))
print(b*int(input())+int(input())*(a-b)) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,929 |
s146711419 | p04011 | u609738635 | 1556332435 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 256 | # -*- coding: utf-8 -*-
def solve(N,K,X,Y):
if(N<=K):
print(N*X)
else:
print(X*K + Y*(N-K))
if __name__ == '__main__':
N = int(input())
K = int(input())
X = int(input())
Y = int(input())
solve(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,930 |
s434694768 | p04011 | u165999673 | 1556259417 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 141 | # -*- coding: utf-8 -*-
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,931 |
s611475313 | p04011 | u165999673 | 1556259229 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 156 | # -*- coding: utf-8 -*-
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,932 |
s835756114 | p04011 | u822738981 | 1556172046 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 127 | # -*- coding: utf-8 -*-
n, k, x, y = [int(input()) for _ in range(4)]
if n < k:
print(n*x)
else:
print(k*x + (n-k)*y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,933 |
s112878220 | p04011 | u475675023 | 1556164785 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 97 | N=int(input())
K=int(input())
X=int(input())
Y=int(input())
print((N<=K)*N*X+(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,934 |
s700725847 | p04011 | u927870520 | 1556162416 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 108 | a=[int(input()) for i in range(4)]
if a[0]>a[1]:
b=(a[0]-a[1])*a[3]+a[1]*a[2]
else:
b=a[0]*a[2]
print(b) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,935 |
s427075036 | p04011 | u059262067 | 1556150236 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 102 | a = int(input())
b = int(input())
c = int(input())
d = int(input())
print(min(a,b)*c + max(a-b,0)*d)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,936 |
s979033656 | p04011 | u436982376 | 1556134649 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 148 | n=int(input())
k=int(input())
x=int(input())
y=int(input())
s=0
for i in range(n):
if k-1>=i:
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,937 |
s650482681 | p04011 | u813371068 | 1556075416 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 80 | n,k,x,y = [int(input()) for i in range(4)]
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,938 |
s009524179 | p04011 | u728566015 | 1556067359 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 201 | # -*- coding: utf-8 -*-
N = int(input())
K = int(input())
X = int(input())
Y = int(input())
cost = 0
for i in range(1, N + 1):
if i <= K:
cost += X
else:
cost += 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,196,939 |
s883539620 | p04011 | u619458041 | 1556061686 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 268 | import sys
def main():
input = sys.stdin.readline
N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N <= K:
return X * N
else:
return K * X + (N - K) * Y
if __name__ == '__main__':
print(main())
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,940 |
s168215985 | p04011 | u077291787 | 1556005038 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 186 | # ABC044A - 高橋君とホテルイージー / Tak and Hotels (ABC Edit)
n, k, x, y= list(map(int, [input().rstrip() for _ in range(4)]))
print(x * n if n <= k else x * k + y * (n - k)) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,941 |
s359670130 | p04011 | u222138979 | 1555970456 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 174 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
tot = 0
if N < K:
tot = N * X
else:
remainder = N - K
tot = K * X + remainder * Y
print(tot) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,942 |
s723410718 | p04011 | u151625340 | 1555962924 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 126 |
N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N <= K:
print(N*X)
else:
print((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,943 |
s785721008 | p04011 | u437925525 | 1555943787 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 80 | n,k,x,y=[int(input())for i in range(4)]
a=k*x+(n-k)*y if n-k>0 else 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,944 |
s789061681 | p04011 | u791489811 | 1555887817 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 113 | n=int(input())
k=int(input())
x=int(input())
y=int(input())
if n<=k:
print(n*x)
else:
print(k*x+(n-k)*y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,945 |
s863828208 | p04011 | u144980750 | 1555880360 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 106 | a=[int(input()) for i in range(4)]
print(a[1]*a[2]+((a[0]-a[1])*a[3] if a[0]>=a[1] else (a[0]-a[1])*a[2])) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,946 |
s991408434 | p04011 | u370429695 | 1555878863 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 181 | total = int(input())
limit = int(input())
first = int(input())
second = int(input())
if total > limit:
print(limit * first + (total - limit) * second)
else:
print(total * first) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,947 |
s769734523 | p04011 | u975676823 | 1555852006 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 134 | 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,948 |
s181412476 | p04011 | u120691615 | 1555728723 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 122 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N <= K:
print(N*X)
else:
print(K*X+(N-K)*Y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,949 |
s610907922 | p04011 | u481026841 | 1555725891 | 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,950 |
s995308166 | p04011 | u878831982 | 1555703661 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 179 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
money = 0
for i in range(N):
if i < K:
money += X
else:
money += Y
print(money) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,951 |
s073314437 | p04011 | u770077083 | 1555703594 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 122 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
if n < k:
print(n*x)
else:
print(k*x+(n-k)*y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,952 |
s451972640 | p04011 | u150641538 | 1555687319 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 120 | n= int(input())
k= int(input())
x= int(input())
y= int(input())
if n <= k:
print(x*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,953 |
s549422497 | p04011 | u980492406 | 1555610194 | 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 :
print(n*x)
else :
a = n - k
print(k*x + a*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,954 |
s742453134 | p04011 | u407158193 | 1555585482 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 129 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
if n <= k:
print(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,955 |
s819917534 | p04011 | u149752754 | 1555531500 | 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,956 |
s653104215 | p04011 | u885899351 | 1555448129 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 89 | n=int(input())
k=int(input())
x=int(input())
y=int(input())
print([n*x,k*x+(n-k)*y][n>k]) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,957 |
s086908644 | p04011 | u021083776 | 1555428980 | 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,958 |
s622772984 | p04011 | u848678027 | 1555393828 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 344 | from sys import stdin
#input=stdin.readline().strip()
input=[]
for i in range(4):
input.append(stdin.readline().strip())
end_t=int(input[0].strip())
start_t=int(input[1].strip())
start_c=int(input[2].strip())
end_c=int(input[3].strip())
sum=0
if end_t>start_t:
sum=start_t*start_c+(end_t-start_t)*end_c
else:
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,959 |
s284495651 | p04011 | u767664985 | 1555385118 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 97 | n, k, x, y = eval("int(input())," * 4)
if n > k:
print(k * x + (n - k) * y)
else:
print(n * x)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,960 |
s311550803 | p04011 | u331464808 | 1555352325 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 129 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
if n <= k:
res = n*x
else:
res = k*x + (n-k)*y
print(res) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,961 |
s430040425 | p04011 | u957872856 | 1555259735 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 154 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
sum = 0
for i in range(n):
if i+1 <= 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,962 |
s559389849 | p04011 | u163320134 | 1555236556 | 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,196,963 |
s644150751 | p04011 | u377036395 | 1555207508 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 126 | n = [int(input()) for n in range(4)]
if n[0] > n[1]:
print(n[1]*n[2] + (n[0] - n[1]) * n[3])
else:
print(n[0] * n[2])
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,964 |
s997262872 | p04011 | u969190727 | 1555198885 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 71 | n,k,x,y=[int(input()) for i in range(4)]
print(x*min(n,k)+y*max(n-k,0)) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,965 |
s697995806 | p04011 | u220345792 | 1555118859 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 128 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N < K:
print(int(N*X))
else:
print(int(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,966 |
s110745492 | p04011 | u172998095 | 1555045858 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 102 | n, k, x, y = [int(input()) for i 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,967 |
s747623708 | p04011 | u956866689 | 1555041196 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 149 | # -*- coding:utf-8 -*-
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,968 |
s132218400 | p04011 | u556016145 | 1555036720 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 100 | A, B, C, X = map(int, open(0).read().split())
if A-B <= 0:
print(A*C)
else:
print(B*C + (A-B)*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,969 |
s506364324 | p04011 | u992910889 | 1555023736 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 140 | from sys import stdin
a = int(input())
b = int(input())
c = int(input())
d = int(input())
if a < b:
print(a*c)
else:
print(b*c+d*(a-b)) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,970 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.