Submission #553092
Source Code Expand
#! ruby -Ku
nums = gets.split.map(&:to_i)
list = nums.combination(3).map{|a|
a.reduce(&:+)
}
list = list.uniq.sort
puts list[-3]
Submission Info
| Submission Time | |
|---|---|
| Task | C - 数を3つ選ぶマン |
| User | kura07 |
| Language | Ruby (2.1.5p273) |
| Score | 100 |
| Code Size | 138 Byte |
| Status | AC |
| Exec Time | 68 ms |
| Memory | 4688 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | example_0.txt, example_1.txt |
| All | example_0.txt, example_1.txt, handmade_0.txt, handmade_1.txt, handmade_2.txt, handmade_3.txt, handmade_4.txt, handmade_5.txt, random_0.txt, random_1.txt, random_2.txt, random_3.txt, random_4.txt, example_0.txt, example_1.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| example_0.txt | AC | 68 ms | 4628 KiB |
| example_1.txt | AC | 54 ms | 4584 KiB |
| handmade_0.txt | AC | 54 ms | 4584 KiB |
| handmade_1.txt | AC | 57 ms | 4616 KiB |
| handmade_2.txt | AC | 55 ms | 4568 KiB |
| handmade_3.txt | AC | 54 ms | 4580 KiB |
| handmade_4.txt | AC | 57 ms | 4584 KiB |
| handmade_5.txt | AC | 57 ms | 4580 KiB |
| random_0.txt | AC | 59 ms | 4576 KiB |
| random_1.txt | AC | 56 ms | 4584 KiB |
| random_2.txt | AC | 59 ms | 4580 KiB |
| random_3.txt | AC | 59 ms | 4580 KiB |
| random_4.txt | AC | 56 ms | 4688 KiB |