Submission #855941


Source Code Expand

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

Submission Info

Submission Time
Task A - 高橋君とホテルイージー / Tak and Hotels (ABC Edit)
User TAB
Language Python3 (3.4.3)
Score 100
Code Size 136 Byte
Status
Exec Time 37 ms
Memory 3064 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 example_01.txt, example_02.txt
All 100 / 100 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 36 ms 3064 KB
example_02.txt 36 ms 3064 KB
subtask1_01.txt 36 ms 3064 KB
subtask1_02.txt 37 ms 3064 KB
subtask1_03.txt 36 ms 3064 KB
subtask1_04.txt 36 ms 3064 KB
subtask1_05.txt 36 ms 3064 KB
subtask1_06.txt 36 ms 3064 KB
subtask1_07.txt 36 ms 3064 KB
subtask1_08.txt 36 ms 3064 KB