結果

問題 No.1564 Sum of Products of Pairs
ユーザー yuruhiyayuruhiya
提出日時 2021-06-27 09:13:21
言語 Ruby
(3.3.0)
結果
AC  
実行時間 222 ms / 2,000 ms
コード長 62 bytes
コンパイル時間 338 ms
コンパイル使用メモリ 11,368 KB
実行使用メモリ 33,808 KB
最終ジャッジ日時 2023-09-07 17:11:49
合計ジャッジ時間 6,874 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,052 KB
testcase_01 AC 82 ms
15,140 KB
testcase_02 AC 82 ms
15,068 KB
testcase_03 AC 152 ms
24,268 KB
testcase_04 AC 88 ms
15,776 KB
testcase_05 AC 170 ms
26,344 KB
testcase_06 AC 143 ms
22,164 KB
testcase_07 AC 118 ms
20,268 KB
testcase_08 AC 102 ms
17,560 KB
testcase_09 AC 121 ms
20,584 KB
testcase_10 AC 172 ms
26,664 KB
testcase_11 AC 181 ms
27,404 KB
testcase_12 AC 150 ms
24,560 KB
testcase_13 AC 80 ms
15,080 KB
testcase_14 AC 81 ms
15,052 KB
testcase_15 AC 81 ms
15,256 KB
testcase_16 AC 83 ms
15,120 KB
testcase_17 AC 82 ms
15,328 KB
testcase_18 AC 217 ms
33,532 KB
testcase_19 AC 208 ms
32,944 KB
testcase_20 AC 214 ms
33,316 KB
testcase_21 AC 218 ms
33,716 KB
testcase_22 AC 203 ms
33,160 KB
testcase_23 AC 220 ms
33,808 KB
testcase_24 AC 222 ms
33,632 KB
testcase_25 AC 220 ms
33,644 KB
testcase_26 AC 219 ms
33,596 KB
testcase_27 AC 221 ms
33,676 KB
testcase_28 AC 81 ms
15,140 KB
testcase_29 AC 80 ms
15,256 KB
testcase_30 AC 80 ms
15,064 KB
testcase_31 AC 81 ms
15,268 KB
testcase_32 AC 80 ms
15,072 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

gets;puts gets.split.map(&:to_i).sort.each_slice(2).sum{_1*_2}
0