結果

問題 No.99 ジャンピング駒
ユーザー cielciel
提出日時 2014-12-09 23:37:31
言語 Ruby
(3.3.0)
結果
AC  
実行時間 128 ms / 5,000 ms
コード長 54 bytes
コンパイル時間 175 ms
コンパイル使用メモリ 11,520 KB
実行使用メモリ 22,220 KB
最終ジャッジ日時 2023-08-26 23:09:38
合計ジャッジ時間 1,703 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
21,952 KB
testcase_01 AC 123 ms
22,176 KB
testcase_02 AC 128 ms
22,084 KB
testcase_03 AC 125 ms
22,188 KB
testcase_04 AC 119 ms
22,084 KB
testcase_05 AC 118 ms
22,220 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

gets
p gets.split.map{|e|e.to_i%2*2-1}.reduce(:+).abs
0