Submission #989418


Source Code Expand

Copy
N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N <= K:
	print(X*N)
else:
	ans = X*K + Y*(N-K)
	print(ans)

Submission Info

Submission Time
Task A - Tak and Hotels (ABC Edit)
User TAB
Language Python (3.4.3)
Score 100
Code Size 137 Byte
Status
Exec Time 24 ms
Memory 3064 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
× 2
× 10
Set Name Test Cases
Sample example_01.txt, example_02.txt
All example_01.txt, example_02.txt, subtask1_01.txt, subtask1_02.txt, subtask1_03.txt, subtask1_04.txt, subtask1_05.txt, subtask1_06.txt, subtask1_07.txt, subtask1_08.txt
Case Name Status Exec Time Memory
example_01.txt 23 ms 3064 KB
example_02.txt 23 ms 3064 KB
subtask1_01.txt 23 ms 3064 KB
subtask1_02.txt 24 ms 3064 KB
subtask1_03.txt 23 ms 3064 KB
subtask1_04.txt 23 ms 3064 KB
subtask1_05.txt 23 ms 3064 KB
subtask1_06.txt 23 ms 3064 KB
subtask1_07.txt 23 ms 3064 KB
subtask1_08.txt 23 ms 3064 KB