結果

問題 No.239 にゃんぱすー
ユーザー mmmpppmmmppp
提出日時 2017-02-26 21:30:00
言語 Ruby
(3.3.0)
結果
RE  
実行時間 -
コード長 97 bytes
コンパイル時間 231 ms
コンパイル使用メモリ 11,544 KB
実行使用メモリ 15,964 KB
最終ジャッジ日時 2023-09-02 10:11:07
合計ジャッジ時間 4,645 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,240 KB
testcase_01 AC 80 ms
15,292 KB
testcase_02 RE -
testcase_03 RE -
testcase_04 AC 82 ms
15,172 KB
testcase_05 RE -
testcase_06 AC 80 ms
15,228 KB
testcase_07 AC 79 ms
15,304 KB
testcase_08 AC 80 ms
15,036 KB
testcase_09 RE -
testcase_10 AC 79 ms
15,220 KB
testcase_11 RE -
testcase_12 RE -
testcase_13 AC 80 ms
15,288 KB
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
testcase_20 AC 81 ms
15,456 KB
testcase_21 RE -
testcase_22 AC 82 ms
15,372 KB
testcase_23 AC 80 ms
15,484 KB
testcase_24 AC 82 ms
15,448 KB
testcase_25 RE -
testcase_26 RE -
testcase_27 AC 78 ms
15,224 KB
testcase_28 AC 80 ms
15,144 KB
testcase_29 RE -
testcase_30 AC 82 ms
15,444 KB
testcase_31 AC 82 ms
15,452 KB
testcase_32 RE -
testcase_33 RE -
testcase_34 AC 82 ms
15,292 KB
testcase_35 RE -
testcase_36 AC 84 ms
15,484 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - x
Syntax OK

ソースコード

diff #

n,*a=$<.read.split;n=n.to_i;p n.times.one?{|i|n.times.one?{|j|a[i+j*n]!='nyanpass'}&&x=i}?x+1: -1
0