結果

問題 No.239 にゃんぱすー
ユーザー mikanmikan
提出日時 2015-10-08 23:40:45
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 164 bytes
コンパイル時間 104 ms
コンパイル使用メモリ 11,480 KB
実行使用メモリ 15,616 KB
最終ジャッジ日時 2023-09-27 08:13:37
合計ジャッジ時間 4,455 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,144 KB
testcase_01 AC 83 ms
15,112 KB
testcase_02 AC 78 ms
15,140 KB
testcase_03 AC 78 ms
15,016 KB
testcase_04 AC 79 ms
15,172 KB
testcase_05 WA -
testcase_06 AC 79 ms
15,272 KB
testcase_07 AC 81 ms
15,236 KB
testcase_08 AC 79 ms
15,080 KB
testcase_09 AC 80 ms
15,328 KB
testcase_10 AC 80 ms
15,296 KB
testcase_11 WA -
testcase_12 AC 78 ms
15,260 KB
testcase_13 AC 79 ms
15,092 KB
testcase_14 AC 79 ms
15,252 KB
testcase_15 AC 81 ms
15,264 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 81 ms
15,272 KB
testcase_21 WA -
testcase_22 AC 81 ms
15,312 KB
testcase_23 AC 82 ms
15,340 KB
testcase_24 AC 82 ms
15,484 KB
testcase_25 AC 81 ms
15,504 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 80 ms
15,128 KB
testcase_29 AC 79 ms
15,128 KB
testcase_30 WA -
testcase_31 AC 80 ms
15,280 KB
testcase_32 AC 80 ms
15,256 KB
testcase_33 WA -
testcase_34 WA -
testcase_35 AC 82 ms
15,432 KB
testcase_36 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

arr = []
gets.to_i.times{arr.push(gets.split)}
n = arr.map{|l| l.count("nyanpass").to_i }
if n.max==1 
	puts arr[n.index(1)].index("nyanpass")+1
else
	puts "-1"
end
0