提出 #812771
ソースコード 拡げる
n = gets.chomp.to_i
l = gets.chomp.split(' ').map(&:to_i)
l.sort!
ans = 0
n.times do |i|
ans += l[i * 2]
end
puts ans
提出情報
| 提出日時 | |
|---|---|
| 問題 | A - BBQ Easy |
| ユーザ | jjfifjfjfifj |
| 言語 | Ruby (2.3.3) |
| 得点 | 200 |
| コード長 | 126 Byte |
| 結果 | AC |
| 実行時間 | 19 ms |
| メモリ | 1788 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 200 / 200 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| 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 |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 01-01.txt | AC | 18 ms | 1788 KiB |
| 01-02.txt | AC | 17 ms | 1788 KiB |
| 01-03.txt | AC | 18 ms | 1788 KiB |
| 01-04.txt | AC | 17 ms | 1788 KiB |
| 01-05.txt | AC | 17 ms | 1788 KiB |
| 01-06.txt | AC | 18 ms | 1788 KiB |
| 01-07.txt | AC | 17 ms | 1788 KiB |
| 01-08.txt | AC | 17 ms | 1788 KiB |
| sample-01.txt | AC | 19 ms | 1788 KiB |
| sample-02.txt | AC | 17 ms | 1788 KiB |