結果

問題 No.602 隠されていたゲーム2
ユーザー syarosyaro
提出日時 2017-12-02 00:17:05
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 206 bytes
コンパイル時間 41 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 30,024 KB
最終ジャッジ日時 2024-05-06 00:05:34
合計ジャッジ時間 3,838 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
12,288 KB
testcase_01 AC 77 ms
12,160 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 73 ms
12,032 KB
testcase_05 AC 73 ms
12,288 KB
testcase_06 AC 73 ms
12,160 KB
testcase_07 WA -
testcase_08 AC 73 ms
12,032 KB
testcase_09 AC 75 ms
12,032 KB
testcase_10 AC 74 ms
12,032 KB
testcase_11 AC 76 ms
12,032 KB
testcase_12 AC 74 ms
12,288 KB
testcase_13 AC 75 ms
12,032 KB
testcase_14 AC 74 ms
12,032 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 141 ms
17,792 KB
testcase_18 AC 255 ms
26,368 KB
testcase_19 AC 285 ms
29,648 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 289 ms
29,808 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