結果

問題 No.602 隠されていたゲーム2
ユーザー syarosyaro
提出日時 2017-12-02 00:17:05
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 206 bytes
コンパイル時間 85 ms
コンパイル使用メモリ 11,412 KB
実行使用メモリ 34,260 KB
最終ジャッジ日時 2023-08-18 18:20:53
合計ジャッジ時間 4,348 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
15,344 KB
testcase_01 AC 69 ms
15,176 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 67 ms
15,256 KB
testcase_05 AC 68 ms
15,176 KB
testcase_06 AC 68 ms
15,260 KB
testcase_07 WA -
testcase_08 AC 67 ms
15,224 KB
testcase_09 AC 68 ms
15,280 KB
testcase_10 AC 68 ms
15,144 KB
testcase_11 AC 69 ms
15,244 KB
testcase_12 AC 69 ms
15,240 KB
testcase_13 AC 70 ms
15,044 KB
testcase_14 AC 70 ms
15,056 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 123 ms
20,708 KB
testcase_18 AC 218 ms
29,756 KB
testcase_19 AC 259 ms
34,048 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 274 ms
34,260 KB
testcase_23 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

eval"N,*D,X,Y="+gets(p).split*?,
q=X.abs+Y.abs
o,e=D.partition(&:odd?).map &:sort
f=o.map{|o|(e.bsearch{|e|e>o}||9e9)-o}+e.map{|e|(o.bsearch{|o|o>e}||9e9)-e}
p D.member?(q)?1:D.max<q/2||(q%2>0&&f.min>q)?0:2
0