Submission #43589383
Source Code Expand
N,price,discount = gets.split.map(&:to_i) d = gets.split.map(&:to_i) discount_total = discount + d.min puts price > discount_total ? discount_total : price
Submission Info
| Submission Time | |
|---|---|
| Task | A - Order Something Else |
| User | zeami |
| Language | Ruby (2.7.1) |
| Score | 100 |
| Code Size | 158 Byte |
| Status | AC |
| Exec Time | 70 ms |
| Memory | 14352 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, 010.txt, 011.txt, 012.txt, example0.txt, example1.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 000.txt | AC | 58 ms | 14188 KiB |
| 001.txt | AC | 59 ms | 14352 KiB |
| 002.txt | AC | 63 ms | 14192 KiB |
| 003.txt | AC | 61 ms | 14092 KiB |
| 004.txt | AC | 60 ms | 14100 KiB |
| 005.txt | AC | 60 ms | 14224 KiB |
| 006.txt | AC | 61 ms | 14120 KiB |
| 007.txt | AC | 61 ms | 14148 KiB |
| 008.txt | AC | 61 ms | 14236 KiB |
| 009.txt | AC | 59 ms | 14340 KiB |
| 010.txt | AC | 60 ms | 14216 KiB |
| 011.txt | AC | 70 ms | 14236 KiB |
| 012.txt | AC | 60 ms | 14332 KiB |
| example0.txt | AC | 58 ms | 14152 KiB |
| example1.txt | AC | 58 ms | 14180 KiB |