結果

問題 No.99 ジャンピング駒
ユーザー yocto_sothothyocto_sothoth
提出日時 2020-11-24 11:43:52
言語 Ruby
(3.2.2)
結果
AC  
実行時間 143 ms / 5,000 ms
コード長 77 bytes
コンパイル時間 361 ms
コンパイル使用メモリ 11,288 KB
実行使用メモリ 22,200 KB
最終ジャッジ日時 2023-10-01 00:51:04
合計ジャッジ時間 2,543 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 139 ms
22,200 KB
testcase_01 AC 138 ms
22,004 KB
testcase_02 AC 139 ms
21,960 KB
testcase_03 AC 143 ms
22,152 KB
testcase_04 AC 138 ms
21,992 KB
testcase_05 AC 139 ms
21,992 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.to_i
x = gets.split.map(&:to_i)

puts (n - 2 * x.count(&:odd?)).abs
0