結果

問題 No.1374 Absolute Game
ユーザー yuruhiyayuruhiya
提出日時 2021-08-19 17:29:57
言語 Ruby
(3.3.0)
結果
RE  
実行時間 -
コード長 108 bytes
コンパイル時間 268 ms
コンパイル使用メモリ 7,296 KB
実行使用メモリ 25,728 KB
最終ジャッジ日時 2024-04-20 20:17:30
合計ジャッジ時間 5,540 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 93 ms
12,288 KB
testcase_01 AC 92 ms
12,288 KB
testcase_02 RE -
testcase_03 RE -
testcase_04 AC 90 ms
12,160 KB
testcase_05 AC 89 ms
12,032 KB
testcase_06 AC 90 ms
12,160 KB
testcase_07 AC 92 ms
12,160 KB
testcase_08 AC 129 ms
15,744 KB
testcase_09 AC 172 ms
22,144 KB
testcase_10 AC 181 ms
23,808 KB
testcase_11 AC 134 ms
19,200 KB
testcase_12 AC 121 ms
16,256 KB
testcase_13 AC 152 ms
20,992 KB
testcase_14 AC 187 ms
25,728 KB
testcase_15 AC 185 ms
25,600 KB
testcase_16 AC 187 ms
25,600 KB
testcase_17 AC 188 ms
25,728 KB
testcase_18 AC 190 ms
25,728 KB
testcase_19 AC 187 ms
25,600 KB
testcase_20 AC 133 ms
17,024 KB
testcase_21 AC 150 ms
18,816 KB
testcase_22 AC 196 ms
25,344 KB
testcase_23 AC 108 ms
13,568 KB
testcase_24 AC 117 ms
13,964 KB
testcase_25 AC 115 ms
14,464 KB
testcase_26 AC 130 ms
16,384 KB
testcase_27 AC 137 ms
18,176 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

eval"A=#"+`tr ' ' ,`;A.sort!
A.size%2>0&&A<<0
x,y=A.each_slice(2).to_a.transpose.map{_1.sum.abs}
p (x-y).abs
0