結果

問題 No.602 隠されていたゲーム2
ユーザー syarosyaro
提出日時 2017-12-02 01:31:35
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 138 bytes
コンパイル時間 100 ms
コンパイル使用メモリ 11,452 KB
実行使用メモリ 34,324 KB
最終ジャッジ日時 2023-08-18 18:52:03
合計ジャッジ時間 4,279 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 90 ms
15,124 KB
testcase_01 AC 86 ms
15,408 KB
testcase_02 AC 85 ms
15,116 KB
testcase_03 AC 86 ms
15,248 KB
testcase_04 WA -
testcase_05 AC 85 ms
15,016 KB
testcase_06 AC 84 ms
15,080 KB
testcase_07 AC 87 ms
15,300 KB
testcase_08 WA -
testcase_09 AC 86 ms
15,088 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 85 ms
15,084 KB
testcase_15 AC 85 ms
15,144 KB
testcase_16 AC 104 ms
17,568 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 202 ms
33,352 KB
testcase_21 AC 197 ms
33,712 KB
testcase_22 AC 225 ms
34,324 KB
testcase_23 AC 214 ms
34,296 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

eval"N,*D,X,Y="+`dd`.split*?,
p D.index(q=X.abs+Y.abs)?1:q<1?0:[D.max*2<-o=e=-q,D.sort.all?{|d|[e,o][d%2]=d;(o-e).abs>q||q>o+e}][q%2]?-1:2
0