結果

問題 No.239 にゃんぱすー
ユーザー kurenaif
提出日時 2016-08-23 21:29:39
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 32 ms / 2,000 ms
コード長 368 bytes
コンパイル時間 129 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-11-08 00:39:22
合計ジャッジ時間 2,181 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 33
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.py:8: SyntaxWarning: "is" with 'str' literal. Did you mean "=="?
  if strs[j] is '-':

ソースコード

diff #

N = int(input())

isRen = [True]*N
for i in range(N):
    strs = list(input().split())

    for j in range(len(strs)):
        if strs[j] is '-':
            continue
        if strs[j] != 'nyanpass':
            isRen[j] &= False

res = []
for i in range(len(isRen)):
    if isRen[i] :
        res.append(i)

if len(res) != 1:
    print(-1)
else:
    print(res[0]+1)
0