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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s510531238 | p04011 | u076917070 | 1565507987 | 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(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,671 |
s541538990 | p04011 | u251515715 | 1565467633 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 90 | n,k,x,y=int(input()),int(input()),int(input()),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,196,672 |
s034222093 | p04011 | u753803401 | 1565460824 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 172 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
total = 0
for i in range(n):
if i < k:
total += x
else:
total += y
print(total)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,673 |
s787787088 | p04011 | u280853184 | 1565452473 | Python | Python (2.7.6) | py | Accepted | 12 | 2948 | 192 | N = raw_input()
K = int(raw_input())
X = int(raw_input())
Y = int(raw_input())
charge = 0
for i in range(int(N)):
if i < K:
charge += X
else:
charge += Y
print charge | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,674 |
s551689573 | p04011 | u268291479 | 1565446470 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 216 | N = int(input()) # 宿泊数
K = int(input()) # 最初のK泊
X = int(input()) # 最初のK泊の料金
Y = int(input()) # K泊 + 1〜の料金
price = min(N, K) * X
if N > K:
price += (N - K) * Y
print(price) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,675 |
s073205706 | p04011 | u111525113 | 1565444525 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 154 | 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,676 |
s583972944 | p04011 | u874741582 | 1565418805 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 111 | n=int(input())
k=int(input())
x=int(input())
y=int(input())
s = n*x*(n<k+1) + k*x*(n>k) +(n-k)*(n>k)*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,677 |
s798483841 | p04011 | u740047492 | 1565389417 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 119 | N=int(input())
K=int(input())
X=int(input())
Y=int(input())
a=K
b=N-K
c=N
if b>0:
print(a*X+b*Y)
else:
print(c*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,678 |
s080799968 | p04011 | u134712256 | 1565386536 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 197 | w = [input() for i in range(4)]
N = int(w[0])
K = int(w[1])
X = int(w[2])
Y = int(w[3])
paid = 0
for i in range(1,N+1):
if i < K+1:
paid += X
else:
paid += Y
print(paid)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,679 |
s832707012 | p04011 | u898058223 | 1565322405 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 117 | N=int(input())
K=int(input())
X=int(input())
Y=int(input())
a=K
b=N-K
c=N
if b>0:
print(a*X+b*Y)
else:
print(c*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,680 |
s194058267 | p04011 | u665038048 | 1565308886 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 124 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
if n >= k:
print(k*x + (n-k)*y)
else:
print(n*x) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,681 |
s287861108 | p04011 | u626337957 | 1565302782 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 118 | 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,682 |
s880691276 | p04011 | u871049538 | 1565293371 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 173 | n, k, x, y = [int(input()) for i in range(4)]
if n > k:
syogaku = k * x
sagaku = (n - k) * y
print(syogaku + sagaku)
else:
syogaku = n * x
print(syogaku) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,683 |
s237543615 | p04011 | u276785896 | 1565244281 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 101 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
print(min(N,K)*X + max(N-K,0)*Y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,684 |
s293286515 | p04011 | u558764629 | 1565234183 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 110 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
print(min(n, k) * x + max(n - k, 0) * y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,685 |
s031327517 | p04011 | u910756197 | 1565201804 | 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,196,686 |
s232331597 | p04011 | u478237640 | 1565152468 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 70 | n,k,x,y=(int(input()) for i in range(4))
print(n*x-max((n-k),0)*(x-y)) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,687 |
s471238921 | p04011 | u100994727 | 1565150012 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 85 | n,k,x,y = [int(input()) for i in range(4)]
print(n*x - (x-y)*(n-k) if n > k else n*x) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,688 |
s769041887 | p04011 | u740767776 | 1565140881 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 136 | 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,196,689 |
s006090138 | p04011 | u891518152 | 1565132023 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 122 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N<=K:
print(X*N)
else:
print(X*K + Y*(N-K)) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,690 |
s403343081 | p04011 | u736729525 | 1565111962 | 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(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,691 |
s001310706 | p04011 | u380524497 | 1565111524 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 150 | n, k, x, y = [int(input()) for i in range(4)]
sum = 0
for t in range(1, n+1):
if t <= 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,692 |
s719506089 | p04011 | u999669171 | 1565103059 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 166 | 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,196,693 |
s406397323 | p04011 | u797550216 | 1565038098 | Python | Python (3.4.3) | py | Accepted | 20 | 2940 | 178 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
c = 0
for i in range(1,n+1):
if i <= k:
c += x
else:
c += y
print(c)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,694 |
s122988105 | p04011 | u076498277 | 1565036669 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 100 | N, K, X, Y = map(int, open(0).read().split())
if N > K:
print(K*X + (N-K)*Y)
else:
print(N * X) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,695 |
s362011198 | p04011 | u641722141 | 1565025116 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 171 | a, b, c, d = int(input()), int(input()), int(input()), int(input())
sum = 0
for i in range(1, a + 1):
if i > b:
sum += d
else:
sum += c
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,696 |
s454512131 | p04011 | u339515914 | 1564982072 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 110 | n, k, x, y = [int(input()) for i in range(4)]
if n >= k:
print(x * k + (n - k) * y)
else:
print(x * n) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,697 |
s015345468 | p04011 | u215315599 | 1564964699 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 112 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
print(X*K+Y*(N-K)) if 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,698 |
s881373024 | p04011 | u084324798 | 1564963832 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 188 | day = int(input())
d_line = int(input())
fee1 = int(input())
fee2 = int(input())
if day > d_line:
total = d_line * fee1 + (day-d_line) * fee2
else:
total = day * fee1
print(total) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,699 |
s685505188 | p04011 | u231122239 | 1564960900 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 147 | # -*- coding: utf-8 -*-
if __name__ == '__main__':
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,700 |
s853439052 | p04011 | u646264672 | 1564954348 | 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*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,701 |
s929985303 | p04011 | u498397607 | 1564893874 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 118 | n, k, x, y = [int(input()) for i in range(4)]
basic = min(k * x, n * x)
plus = max((n - k) * y, 0)
print(basic + plus) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,702 |
s844248822 | p04011 | u571445182 | 1564893784 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 221 | import sys
nN = int(input())
nK = int(input())
nX = int(input())
nY = int(input())
nE = 0
nAns = 0
if nN <= nK:
nAns = nX * nN
print(nAns)
sys.exit()
nE = nN - nK
nAns = (nX * nK) + (nY * nE)
print(nAns)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,703 |
s258032927 | p04011 | u075367840 | 1564888853 | 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:
res = k*x + (n-k)*y
else:
res = n*x
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,704 |
s357252576 | p04011 | u979418645 | 1564879665 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 136 | N,K,X,Y=[input() for i in range(4)]
N=int(N)
K=int(K)
X=int(X)
Y=int(Y)
if K<=N:
fee=K*X+(N-K)*Y
else:
fee=N*X
print(fee) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,705 |
s198490078 | p04011 | u904804404 | 1564872643 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 95 | N,K,X,Y=int(input()),int(input()),int(input()),int(input())
print(min(K,N)*X+ max(0,N-K)*Y ) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,706 |
s396516727 | p04011 | u538956308 | 1564871576 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 118 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N >= K:
print(K*X+(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,707 |
s323757420 | p04011 | u242518667 | 1564858510 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 76 | 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,708 |
s508527484 | p04011 | u602677143 | 1564840715 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 118 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
if n <= k:
print(n*x)
else:
print(k*x+(n-k)*y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,709 |
s823100603 | p04011 | u257541375 | 1564811080 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 157 | 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,196,710 |
s598498372 | p04011 | u713465512 | 1564802907 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 195 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
total_price = 0
for i in range(1,N+1):
if i<= K:
total_price+=X
else:
total_price+=Y
print(total_price) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,711 |
s687194208 | p04011 | u297651868 | 1564797888 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 127 | N,K,X,Y= [int(input()) for i in range(4)]
a=0
for i in range(1,N+1):
if i<K+1:
a+=X
else:
a+=Y
print(a) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,712 |
s393221539 | p04011 | u200785298 | 1564797662 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 562 | #!/usr/bin/env python3
import sys
sys.setrecursionlimit(300000)
def solve(N: int, K: int, X: int, Y: int):
ret = X * min(N, K) + Y * max(0, N - K)
print(ret)
return
def main():
def iterate_tokens():
for line in sys.stdin:
for word in line.split():
yield word
t... | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,713 |
s168908191 | p04011 | u277448038 | 1564765259 | 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:
s = n*x
else:
s = k * x + (n-k)*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,714 |
s149059917 | p04011 | u416258526 | 1564734454 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 130 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
answer = min(k,n)*x
if n>k:
answer += (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,715 |
s877200614 | p04011 | u003501233 | 1564534651 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 94 | N,K,X,Y=[int(input()) for i in range(4)]
if N >= K:
print(Y*(N-K) + K*X)
else:
print(N*X) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,716 |
s921261235 | p04011 | u870906509 | 1564513537 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 123 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
if n <= k:
print(n*x)
else:
print(k*x+(n-k)*y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,717 |
s573393441 | p04011 | u982594421 | 1564478252 | 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,196,718 |
s034010284 | p04011 | u576712004 | 1564460543 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 126 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
pay = K * X + (N - K) * Y if N > K else N * X
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,719 |
s093967803 | p04011 | u385309449 | 1564431696 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 120 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N >= K:
print(X*K+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,720 |
s233741430 | p04011 | u408620326 | 1564337214 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 111 | N,K,X,Y=[int(input()) for _ in range(4)]
if N==0:
print(0)
elif 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,721 |
s383164656 | p04011 | u514894322 | 1564325842 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 152 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
fee = 0
for i in range(n):
if i >k-1:
fee += y
else:
fee += x
print(fee) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,722 |
s995373625 | p04011 | u580904613 | 1564275539 | 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,723 |
s625357804 | p04011 | u114648678 | 1564188827 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 90 | n=int(input())
k=int(input())
x=int(input())
y=int(input())
print(min(n,k)*x+max(0,n-k)*y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,724 |
s557192109 | p04011 | u516242950 | 1564188707 | 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 >= 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,196,725 |
s032168830 | p04011 | u027929618 | 1564085849 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 163 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
ans = 0
if k < n:
ans = (k * x) + (y * (n - k))
else:
ans = n * x
print("{}".format(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,726 |
s410988309 | p04011 | u324549724 | 1564037424 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 103 | 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,727 |
s377944057 | p04011 | u839270538 | 1564004995 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 155 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
sm = 0
for i in range(n):
if i >= k:
sm += y
else:
sm += x
print(sm) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,728 |
s622118936 | p04011 | u201660334 | 1564003256 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 108 | 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,729 |
s585970703 | p04011 | u921773161 | 1563976495 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 120 | a = int(input())
b = int(input())
c = int(input())
d = int(input())
if b>=a :
print(a*c)
else :
print(b*c + (a-b)*d) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,730 |
s895679346 | p04011 | u759412327 | 1563948607 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 89 | N,K,X,Y = [int(input()) for i in range(4)]
z = X*N
if N>K:
z+=(Y-X)*(N-K)
print(z)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,731 |
s397433554 | p04011 | u369338402 | 1563905302 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 118 | n=int(input())
k=int(input())
x=int(input())
y=int(input())
if k>=n:
print(int(n*x))
else:
print(int(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,732 |
s625641962 | p04011 | u823609854 | 1563808486 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 151 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
s = 0
for i in range(1, n+1):
if i <= k:
s += x
else:
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,733 |
s416627928 | p04011 | u668503853 | 1563802572 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 102 | 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,734 |
s138296160 | p04011 | u178888901 | 1563716295 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 116 | 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,735 |
s965752353 | p04011 | u502028059 | 1563649866 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 156 | 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,196,736 |
s771768370 | p04011 | u282657760 | 1563647932 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 116 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N<=K:
print(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,737 |
s047941365 | p04011 | u374974389 | 1563634048 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 124 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
if n > k:
print(k*x + (n-k)*y)
else:
print(n*x)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,738 |
s771693029 | p04011 | u083960235 | 1563592794 | Python | Python (3.4.3) | py | Accepted | 42 | 5384 | 811 | import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_upper... | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,739 |
s946265202 | p04011 | u948524308 | 1563471494 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 176 |
N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N <= K:
cost = N * X
print(cost)
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,196,740 |
s807924108 | p04011 | u298297089 | 1563429278 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 126 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
ans = min(K,N) * X
if K < N:
ans += Y * (N-K)
print(ans) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,741 |
s717216950 | p04011 | u797016134 | 1563427351 | Python | Python (3.4.3) | py | Accepted | 18 | 3064 | 134 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
if n > k:
print(int(x*k + y*(n-k)))
else:
print(int(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,742 |
s272271107 | p04011 | u918935103 | 1563423917 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 123 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
if k < n:
print(k*x + (n-k)*y)
else:
print(n*x) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,743 |
s435922819 | p04011 | u031146664 | 1563397620 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 112 | 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,196,744 |
s677391928 | p04011 | u828766688 | 1563342397 | 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:
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,745 |
s760132624 | p04011 | u374802266 | 1563319965 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 114 | a=[int(input()) for i in range(4)]
if a[0]<=a[1]:
print(a[0]*a[2])
else:
print((a[0]-a[1])*a[3]+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,746 |
s745140885 | p04011 | u103341055 | 1563316741 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 123 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N <= K:
print(N*X)
else:
print(K*X+(N-K)*Y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,747 |
s421914633 | p04011 | u537782349 | 1563299775 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 118 | a = int(input())
b = int(input())
c = int(input())
d = int(input())
print(sum([c if i < b else d for i in range(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,748 |
s019741676 | p04011 | u257332942 | 1563217214 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 172 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
fee = 0
for i in range(1, n+1):
if i <= k:
fee += x
else:
fee += y
print(fee)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,749 |
s290073866 | p04011 | u811000506 | 1563080160 | Python | Python (3.4.3) | py | Accepted | 21 | 2940 | 163 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
sum = 0
for i in range(N):
if i>K-1:
sum += Y
else:
sum += X
print(sum) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,750 |
s867026636 | p04011 | u800258529 | 1562974562 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 103 | 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,751 |
s206472814 | p04011 | u567434159 | 1562900244 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 121 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
f = min(n, k)
s = max(0, n - f)
print(f * x + s * y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,752 |
s628261844 | p04011 | u675073679 | 1562876126 | 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,753 |
s153313972 | p04011 | u243699903 | 1562815560 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 111 | 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,754 |
s660859951 | p04011 | u114366889 | 1562812555 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 117 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N < K :
print(N*X)
else:
print(K*X+(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,755 |
s689929281 | p04011 | u693933222 | 1562713732 | 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):
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,756 |
s889534741 | p04011 | u537782349 | 1562684632 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 110 | 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,757 |
s600365781 | p04011 | u375823148 | 1562560413 | Python | Python (3.4.3) | py | Accepted | 20 | 2940 | 129 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
r = 0;
for i in range(n):
if i<k: r+=x
else: r+=y
print(r)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,758 |
s603622692 | p04011 | u123745130 | 1562523848 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 78 | 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,196,759 |
s740717002 | p04011 | u668503853 | 1562385994 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 103 | 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,760 |
s080561947 | p04011 | u888512581 | 1562270605 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 98 | 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,761 |
s225040177 | p04011 | u687044304 | 1562244022 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 256 | # -*- coding:utf-8 -*-
def solve():
N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N >= K:
ans = X*K + Y*(N-K)
else:
ans = X*N
print(ans)
if __name__ == "__main__":
solve()
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,762 |
s607349234 | p04011 | u950376354 | 1562184572 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 119 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N>K:
print((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,763 |
s257229147 | p04011 | u226873514 | 1562180059 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 133 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
if n > k:
print(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,764 |
s969621973 | p04011 | u537976628 | 1562170352 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 85 | N, K, X, Y = (int(input()) for i in range(4))
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,765 |
s412127658 | p04011 | u862296914 | 1562160819 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 118 | from sys import stdin
N, K, X, Y = map(int,stdin.read().splitlines())
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,766 |
s029304696 | p04011 | u093500767 | 1562126965 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 123 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
if n <= k:
print(n*x)
else:
print(k*x+(n-k)*y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,196,767 |
s471981315 | p04011 | u473291366 | 1562126872 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 165 | 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,768 |
s333296985 | p04011 | u314050667 | 1562123178 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 93 | 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,769 |
s063034268 | p04011 | u288948615 | 1561943538 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 133 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if K >= N:
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,770 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.