Submission #1606149
Source Code Expand
gets a=gets.split.map(&:to_i) tmp = 0 side=[] a.sort_by { |i| -i }.each do |i| if i == tmp tmp = 0 side << i break if side.count == 2 else tmp = i end end puts side[0].to_i * side[1].to_i
Submission Info
Submission Time | |
---|---|
Task | C - Make a Rectangle |
User | ne280020 |
Language | Ruby (2.3.3) |
Score | 300 |
Code Size | 222 Byte |
Status | AC |
Exec Time | 130 ms |
Memory | 11648 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 300 / 300 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample1.txt, sample2.txt, sample3.txt |
All | sample1.txt, sample2.txt, sample3.txt, 1.txt, 2.txt, 3.txt, 4.txt, 5.txt, 6.txt, 7.txt, 8.txt, 9.txt, sample1.txt, sample2.txt, sample3.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
1.txt | AC | 126 ms | 11648 KB |
2.txt | AC | 65 ms | 6784 KB |
3.txt | AC | 130 ms | 11648 KB |
4.txt | AC | 126 ms | 11648 KB |
5.txt | AC | 64 ms | 6784 KB |
6.txt | AC | 122 ms | 11648 KB |
7.txt | AC | 120 ms | 11648 KB |
8.txt | AC | 51 ms | 5632 KB |
9.txt | AC | 68 ms | 6784 KB |
sample1.txt | AC | 7 ms | 1788 KB |
sample2.txt | AC | 6 ms | 1788 KB |
sample3.txt | AC | 7 ms | 1788 KB |