結果
| 問題 | No.239 にゃんぱすー |
| コンテスト | |
| ユーザー |
steek79
|
| 提出日時 | 2015-10-13 12:07:04 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 19 ms / 2,000 ms |
| コード長 | 244 bytes |
| コンパイル時間 | 50 ms |
| コンパイル使用メモリ | 7,720 KB |
| 最終ジャッジ日時 | 2025-12-03 17:27:26 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 33 |
ソースコード
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
steek79