結果

問題 No.99 ジャンピング駒
ユーザー mmmpppmmmppp
提出日時 2017-02-23 09:03:00
言語 Ruby
(3.3.0)
結果
AC  
実行時間 132 ms / 5,000 ms
コード長 59 bytes
コンパイル時間 134 ms
コンパイル使用メモリ 11,488 KB
実行使用メモリ 23,004 KB
最終ジャッジ日時 2023-08-30 21:14:40
合計ジャッジ時間 1,565 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
22,808 KB
testcase_01 AC 128 ms
23,004 KB
testcase_02 AC 129 ms
22,848 KB
testcase_03 AC 132 ms
22,980 KB
testcase_04 AC 128 ms
22,880 KB
testcase_05 AC 128 ms
22,808 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n,*a=$<.read.split.map &:to_i;p (a.count{|e|e%2<1}*2-n).abs
0