結果

問題 No.1564 Sum of Products of Pairs
ユーザー yuruhiyayuruhiya
提出日時 2021-06-27 16:48:05
言語 Ruby
(3.3.0)
結果
AC  
実行時間 222 ms / 2,000 ms
コード長 58 bytes
コンパイル時間 65 ms
コンパイル使用メモリ 11,244 KB
実行使用メモリ 33,896 KB
最終ジャッジ日時 2023-09-07 18:04:31
合計ジャッジ時間 6,355 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,136 KB
testcase_01 AC 86 ms
15,056 KB
testcase_02 AC 80 ms
15,060 KB
testcase_03 AC 152 ms
24,596 KB
testcase_04 AC 87 ms
15,548 KB
testcase_05 AC 171 ms
26,312 KB
testcase_06 AC 142 ms
22,332 KB
testcase_07 AC 118 ms
20,388 KB
testcase_08 AC 101 ms
17,712 KB
testcase_09 AC 120 ms
20,636 KB
testcase_10 AC 171 ms
26,508 KB
testcase_11 AC 181 ms
27,376 KB
testcase_12 AC 155 ms
24,680 KB
testcase_13 AC 83 ms
15,252 KB
testcase_14 AC 80 ms
15,304 KB
testcase_15 AC 82 ms
15,300 KB
testcase_16 AC 80 ms
15,100 KB
testcase_17 AC 81 ms
15,304 KB
testcase_18 AC 216 ms
33,404 KB
testcase_19 AC 213 ms
32,984 KB
testcase_20 AC 219 ms
33,424 KB
testcase_21 AC 221 ms
33,628 KB
testcase_22 AC 205 ms
33,264 KB
testcase_23 AC 222 ms
33,896 KB
testcase_24 AC 222 ms
33,580 KB
testcase_25 AC 221 ms
33,604 KB
testcase_26 AC 221 ms
33,644 KB
testcase_27 AC 221 ms
33,652 KB
testcase_28 AC 85 ms
15,280 KB
testcase_29 AC 84 ms
15,152 KB
testcase_30 AC 85 ms
15,160 KB
testcase_31 AC 83 ms
15,056 KB
testcase_32 AC 84 ms
15,100 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

p [*$<][1].split.map(&:to_i).sort.each_slice(2).sum{_1*_2}
0