結果

問題 No.1374 Absolute Game
ユーザー yuruhiyayuruhiya
提出日時 2021-08-19 17:30:44
言語 Ruby
(3.3.0)
結果
AC  
実行時間 199 ms / 2,000 ms
コード長 109 bytes
コンパイル時間 46 ms
コンパイル使用メモリ 7,680 KB
実行使用メモリ 25,856 KB
最終ジャッジ日時 2024-04-20 20:18:08
合計ジャッジ時間 5,295 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
外部呼び出し有り
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 99 ms
12,160 KB
testcase_01 AC 100 ms
12,288 KB
testcase_02 AC 99 ms
12,160 KB
testcase_03 AC 99 ms
12,160 KB
testcase_04 AC 100 ms
12,160 KB
testcase_05 AC 99 ms
12,288 KB
testcase_06 AC 98 ms
12,288 KB
testcase_07 AC 97 ms
12,160 KB
testcase_08 AC 127 ms
15,744 KB
testcase_09 AC 171 ms
22,400 KB
testcase_10 AC 178 ms
23,808 KB
testcase_11 AC 147 ms
19,328 KB
testcase_12 AC 130 ms
16,384 KB
testcase_13 AC 159 ms
20,992 KB
testcase_14 AC 190 ms
25,600 KB
testcase_15 AC 191 ms
25,856 KB
testcase_16 AC 193 ms
25,728 KB
testcase_17 AC 193 ms
25,728 KB
testcase_18 AC 191 ms
25,472 KB
testcase_19 AC 191 ms
25,472 KB
testcase_20 AC 133 ms
16,896 KB
testcase_21 AC 157 ms
18,944 KB
testcase_22 AC 199 ms
25,344 KB
testcase_23 AC 108 ms
13,568 KB
testcase_24 AC 112 ms
14,156 KB
testcase_25 AC 113 ms
14,336 KB
testcase_26 AC 130 ms
16,256 KB
testcase_27 AC 143 ms
18,304 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