結果

問題 No.239 にゃんぱすー
ユーザー pypypymipypypymi
提出日時 2022-02-21 15:48:45
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 31 ms / 2,000 ms
コード長 338 bytes
コンパイル時間 135 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 11,392 KB
最終ジャッジ日時 2024-06-29 20:10:13
合計ジャッジ時間 2,636 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
result = []
for i in range(n):
    an = input().split()
    result.append(an)
result = [list(set(filter(lambda x :x!="-",list(i)))) for i in zip(*result)]
answer = []
for i,v in enumerate(result):
    if len(v)==1 and v[0]=="nyanpass":
        answer.append(i+1)
print(answer[0]) if len(answer)==1 else print(-1)
        
0