結果

問題 No.239 にゃんぱすー
ユーザー simansiman
提出日時 2015-11-03 11:23:04
言語 Ruby
(3.3.0)
結果
RE  
実行時間 -
コード長 107 bytes
コンパイル時間 56 ms
コンパイル使用メモリ 11,228 KB
実行使用メモリ 15,780 KB
最終ジャッジ日時 2023-10-11 13:16:21
合計ジャッジ時間 4,718 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 AC 80 ms
15,296 KB
testcase_03 AC 81 ms
15,316 KB
testcase_04 AC 81 ms
15,292 KB
testcase_05 AC 85 ms
15,324 KB
testcase_06 RE -
testcase_07 RE -
testcase_08 AC 81 ms
15,080 KB
testcase_09 AC 82 ms
15,280 KB
testcase_10 AC 81 ms
15,288 KB
testcase_11 AC 83 ms
15,064 KB
testcase_12 AC 83 ms
15,328 KB
testcase_13 AC 82 ms
15,272 KB
testcase_14 AC 82 ms
15,368 KB
testcase_15 AC 86 ms
15,352 KB
testcase_16 AC 84 ms
15,292 KB
testcase_17 AC 85 ms
15,284 KB
testcase_18 AC 85 ms
15,352 KB
testcase_19 AC 84 ms
15,328 KB
testcase_20 AC 86 ms
15,296 KB
testcase_21 AC 85 ms
15,416 KB
testcase_22 AC 85 ms
15,272 KB
testcase_23 AC 85 ms
15,416 KB
testcase_24 AC 85 ms
15,628 KB
testcase_25 AC 86 ms
15,732 KB
testcase_26 AC 85 ms
15,780 KB
testcase_27 RE -
testcase_28 RE -
testcase_29 AC 82 ms
15,340 KB
testcase_30 RE -
testcase_31 RE -
testcase_32 AC 85 ms
15,520 KB
testcase_33 AC 85 ms
15,312 KB
testcase_34 RE -
testcase_35 AC 85 ms
15,636 KB
testcase_36 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

gets
l=[*$<].map(&:split).transpose
a=l.select{|s|
s.count('nyanpass')>s.size-2
}
p a[1]?-1:l.index(a[0])+1
0