結果

問題 No.239 にゃんぱすー
コンテスト
ユーザー steek79
提出日時 2015-10-13 12:07:04
言語 Python2
(2.7.18)
コンパイル:
python2x -m py_compile _filename_
実行:
/usr/bin/python2x Main.pyc
結果
AC  
実行時間 9 ms / 2,000 ms
+ 840µs
コード長 244 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 56 ms
コンパイル使用メモリ 7,340 KB
実行使用メモリ 6,912 KB
最終ジャッジ日時 2026-07-17 22:32:58
合計ジャッジ時間 2,460 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

N = input()

cnd = [1] * N
for n in xrange(N):
    grts = raw_input().split()
    for i in xrange(N):
        if grts[i] != "nyanpass" and grts[i] != "-":
            cnd[i] = 0

if cnd.count(1) == 1:
    print cnd.index(1)+1
else:
    print -1
0