結果

問題 No.1374 Absolute Game
ユーザー yuruhiyayuruhiya
提出日時 2021-02-06 15:24:31
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 114 bytes
コンパイル時間 153 ms
コンパイル使用メモリ 11,464 KB
実行使用メモリ 26,092 KB
最終ジャッジ日時 2023-09-15 23:12:17
合計ジャッジ時間 4,874 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,372 KB
testcase_01 AC 87 ms
15,276 KB
testcase_02 AC 81 ms
15,280 KB
testcase_03 AC 83 ms
15,164 KB
testcase_04 AC 82 ms
15,092 KB
testcase_05 WA -
testcase_06 AC 82 ms
15,260 KB
testcase_07 WA -
testcase_08 AC 103 ms
18,192 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 120 ms
20,732 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 160 ms
25,760 KB
testcase_16 WA -
testcase_17 AC 162 ms
25,964 KB
testcase_18 WA -
testcase_19 AC 160 ms
25,968 KB
testcase_20 AC 112 ms
18,640 KB
testcase_21 AC 118 ms
20,440 KB
testcase_22 AC 157 ms
25,556 KB
testcase_23 AC 90 ms
15,888 KB
testcase_24 WA -
testcase_25 AC 95 ms
16,752 KB
testcase_26 AC 106 ms
18,392 KB
testcase_27 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a=[*$<][1].split.map(&:to_i).sort
a<<0 if a.size.odd?
p a.each_slice(2).to_a.transpose.map{_1.sum.abs}.then{_1-_2}
0