Submission #1363700
Source Code Expand
lines = $stdin.read array = lines.split("\n") N = array[0].to_i L = array[1].split(" ").map(&:to_i).sort.reverse guzai = 0 for i in 0..N-1 guzai += L[i*2+1] #puts "plus #{i*2+1}" end puts guzai
Submission Info
Submission Time | |
---|---|
Task | A - BBQ Easy |
User | hiroyuking |
Language | Ruby (2.3.3) |
Score | 200 |
Code Size | 214 Byte |
Status | AC |
Exec Time | 7 ms |
Memory | 1788 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 200 / 200 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample-01.txt, sample-02.txt |
All | sample-01.txt, sample-02.txt, 01-01.txt, 01-02.txt, 01-03.txt, 01-04.txt, 01-05.txt, 01-06.txt, 01-07.txt, 01-08.txt, sample-01.txt, sample-02.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
01-01.txt | AC | 7 ms | 1788 KB |
01-02.txt | AC | 7 ms | 1788 KB |
01-03.txt | AC | 7 ms | 1788 KB |
01-04.txt | AC | 7 ms | 1788 KB |
01-05.txt | AC | 7 ms | 1788 KB |
01-06.txt | AC | 7 ms | 1788 KB |
01-07.txt | AC | 7 ms | 1788 KB |
01-08.txt | AC | 7 ms | 1788 KB |
sample-01.txt | AC | 7 ms | 1788 KB |
sample-02.txt | AC | 7 ms | 1788 KB |