Submission #24344333
Source Code Expand
n,a,x,y=map(int,input().split()) if n>a: print(a*x+(n-a)*y) else: print(n*x)
Submission Info
| Submission Time | |
|---|---|
| Task | A - Cabbages |
| User | akimasa_l |
| Language | Python (3.8.2) |
| Score | 100 |
| Code Size | 84 Byte |
| Status | AC |
| Exec Time | 26 ms |
| Memory | 9184 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | example0.txt, example1.txt |
| All | 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, 007.txt, 008.txt, 009.txt, example0.txt, example1.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 000.txt | AC | 18 ms | 9032 KiB |
| 001.txt | AC | 19 ms | 9028 KiB |
| 002.txt | AC | 26 ms | 8972 KiB |
| 003.txt | AC | 25 ms | 9104 KiB |
| 004.txt | AC | 18 ms | 8868 KiB |
| 005.txt | AC | 22 ms | 8988 KiB |
| 006.txt | AC | 17 ms | 9024 KiB |
| 007.txt | AC | 17 ms | 8864 KiB |
| 008.txt | AC | 21 ms | 8980 KiB |
| 009.txt | AC | 21 ms | 8864 KiB |
| example0.txt | AC | 20 ms | 8872 KiB |
| example1.txt | AC | 18 ms | 9184 KiB |