結果

問題 No.239 にゃんぱすー
ユーザー a_tena_ten
提出日時 2016-03-28 16:38:31
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 234 bytes
コンパイル時間 177 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 7,168 KB
最終ジャッジ日時 2024-04-10 05:02:03
合計ジャッジ時間 1,814 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,812 KB
testcase_01 AC 10 ms
6,940 KB
testcase_02 AC 11 ms
6,944 KB
testcase_03 AC 11 ms
6,944 KB
testcase_04 AC 11 ms
6,940 KB
testcase_05 WA -
testcase_06 AC 11 ms
6,940 KB
testcase_07 AC 11 ms
6,944 KB
testcase_08 AC 11 ms
6,944 KB
testcase_09 AC 12 ms
6,944 KB
testcase_10 AC 11 ms
6,940 KB
testcase_11 WA -
testcase_12 AC 11 ms
6,940 KB
testcase_13 AC 10 ms
6,940 KB
testcase_14 AC 10 ms
6,940 KB
testcase_15 AC 11 ms
6,944 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 12 ms
6,940 KB
testcase_21 WA -
testcase_22 AC 12 ms
6,940 KB
testcase_23 AC 12 ms
6,944 KB
testcase_24 AC 14 ms
7,040 KB
testcase_25 AC 13 ms
7,040 KB
testcase_26 WA -
testcase_27 AC 10 ms
6,944 KB
testcase_28 AC 10 ms
6,940 KB
testcase_29 AC 10 ms
6,940 KB
testcase_30 AC 12 ms
6,940 KB
testcase_31 AC 12 ms
6,940 KB
testcase_32 AC 12 ms
6,944 KB
testcase_33 WA -
testcase_34 AC 13 ms
6,940 KB
testcase_35 AC 13 ms
7,040 KB
testcase_36 AC 14 ms
7,168 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#coding:utf-8

N=input()
S=[raw_input().split() for i in range(N)]

cnt=[]
for u in S:
	for r,t in enumerate(u):
		if t=='nyanpass':
			cnt.append(r+1)
			
if cnt:
	if len(set(cnt))==1:
		print cnt[0]
	else:
		print -1
else:
	print -1
0