結果

問題 No.1374 Absolute Game
ユーザー yuruhiyayuruhiya
提出日時 2021-02-06 15:25:55
言語 Ruby
(3.3.0)
結果
AC  
実行時間 157 ms / 2,000 ms
コード長 118 bytes
コンパイル時間 94 ms
コンパイル使用メモリ 11,292 KB
実行使用メモリ 26,040 KB
最終ジャッジ日時 2023-09-15 23:15:18
合計ジャッジ時間 4,737 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
15,252 KB
testcase_01 AC 83 ms
15,292 KB
testcase_02 AC 81 ms
15,152 KB
testcase_03 AC 80 ms
15,132 KB
testcase_04 AC 80 ms
15,112 KB
testcase_05 AC 80 ms
15,304 KB
testcase_06 AC 80 ms
15,284 KB
testcase_07 AC 81 ms
15,296 KB
testcase_08 AC 104 ms
18,352 KB
testcase_09 AC 139 ms
21,788 KB
testcase_10 AC 144 ms
22,304 KB
testcase_11 AC 118 ms
20,720 KB
testcase_12 AC 104 ms
18,420 KB
testcase_13 AC 135 ms
21,508 KB
testcase_14 AC 155 ms
25,856 KB
testcase_15 AC 154 ms
26,040 KB
testcase_16 AC 156 ms
25,852 KB
testcase_17 AC 154 ms
25,868 KB
testcase_18 AC 157 ms
25,908 KB
testcase_19 AC 156 ms
26,028 KB
testcase_20 AC 108 ms
18,824 KB
testcase_21 AC 118 ms
20,256 KB
testcase_22 AC 157 ms
25,608 KB
testcase_23 AC 88 ms
15,660 KB
testcase_24 AC 90 ms
16,396 KB
testcase_25 AC 92 ms
16,732 KB
testcase_26 AC 105 ms
18,448 KB
testcase_27 AC 113 ms
19,356 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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}.abs
0