結果

問題 No.268 ラッピング(Easy)
ユーザー cielciel
提出日時 2015-08-22 03:25:41
言語 Ruby
(3.2.2)
結果
AC  
実行時間 88 ms / 5,000 ms
コード長 124 bytes
コンパイル時間 159 ms
コンパイル使用メモリ 11,236 KB
実行使用メモリ 15,288 KB
最終ジャッジ日時 2023-08-27 00:03:02
合計ジャッジ時間 2,160 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 88 ms
15,264 KB
testcase_01 AC 82 ms
15,224 KB
testcase_02 AC 80 ms
15,024 KB
testcase_03 AC 80 ms
15,152 KB
testcase_04 AC 79 ms
15,028 KB
testcase_05 AC 80 ms
15,248 KB
testcase_06 AC 80 ms
15,028 KB
testcase_07 AC 80 ms
15,228 KB
testcase_08 AC 81 ms
14,968 KB
testcase_09 AC 82 ms
15,212 KB
testcase_10 AC 81 ms
15,064 KB
testcase_11 AC 81 ms
15,288 KB
testcase_12 AC 83 ms
15,028 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

L=gets.split.map &:to_i
s=0
3.times.map{|i|L[i]+L[(i+1)%3]}.sort.zip(gets.split.map(&:to_i).sort.reverse){|x,y|s+=x*y}
p s*2
0