結果

問題 No.239 にゃんぱすー
ユーザー あかりき
提出日時 2021-05-24 06:16:49
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 240 bytes
コンパイル時間 234 ms
コンパイル使用メモリ 82,412 KB
実行使用メモリ 61,924 KB
最終ジャッジ日時 2024-10-12 12:10:20
合計ジャッジ時間 4,003 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 2
other AC * 16 WA * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
a=[input().split() for i in range(n)]
ans=[]
for i in range(n):
  f=1
  for j in range(n):
    if i!=j:
      if a[j][i]!='nyapass':
        f=0
  if f==1:
    ans.append(i)
if len(ans)==1:
  print(ans[0]+1)
else:
  print(-1)
0