結果
| 問題 | No.239 にゃんぱすー |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-09-17 16:32:04 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 94 ms / 2,000 ms |
| コード長 | 376 bytes |
| 記録 | |
| コンパイル時間 | 551 ms |
| コンパイル使用メモリ | 20,808 KB |
| 実行使用メモリ | 15,488 KB |
| 最終ジャッジ日時 | 2026-03-29 03:43:32 |
| 合計ジャッジ時間 | 5,095 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 33 |
ソースコード
n = int(input())
array=[]
for i in range(n):
array.append(input().split())
cnt=0
suspect=[]
for i in range(n):
for j in range(n):
if array[j][i]=="nyanpass" or array[j][i]=="-":
cnt+=1
else:
break
if cnt==n:
suspect.append(i+1)
cnt=0
if len(suspect)==1:
print(*suspect)
else:
print(-1)