結果

問題 No.99 ジャンピング駒
ユーザー cielciel
提出日時 2014-12-09 23:35:17
言語 Ruby
(3.3.0)
結果
AC  
実行時間 140 ms / 5,000 ms
コード長 71 bytes
コンパイル時間 60 ms
コンパイル使用メモリ 11,336 KB
実行使用メモリ 22,268 KB
最終ジャッジ日時 2023-09-02 12:20:40
合計ジャッジ時間 1,693 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 139 ms
22,184 KB
testcase_01 AC 138 ms
22,108 KB
testcase_02 AC 140 ms
22,140 KB
testcase_03 AC 137 ms
22,268 KB
testcase_04 AC 135 ms
22,052 KB
testcase_05 AC 134 ms
22,060 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
/usr/bin/ruby: warning: shebang line ending with \r may cause problems
Syntax OK

ソースコード

diff #

#!/usr/bin/ruby
gets
p gets.split.map{|e|e.to_i%2*2-1}.reduce(:+).abs
0