結果

問題 No.239 にゃんぱすー
ユーザー あかりきあかりき
提出日時 2021-05-24 06:16:49
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 240 bytes
コンパイル時間 186 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 60,160 KB
最終ジャッジ日時 2024-04-20 16:22:52
合計ジャッジ時間 3,457 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
51,712 KB
testcase_01 AC 43 ms
51,456 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 42 ms
51,456 KB
testcase_05 WA -
testcase_06 AC 43 ms
51,968 KB
testcase_07 AC 43 ms
52,224 KB
testcase_08 AC 42 ms
51,840 KB
testcase_09 WA -
testcase_10 AC 42 ms
51,968 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 47 ms
57,856 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 49 ms
58,624 KB
testcase_21 WA -
testcase_22 AC 49 ms
59,776 KB
testcase_23 AC 48 ms
59,520 KB
testcase_24 AC 49 ms
59,264 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 43 ms
51,968 KB
testcase_28 AC 43 ms
52,096 KB
testcase_29 WA -
testcase_30 AC 50 ms
59,264 KB
testcase_31 AC 49 ms
58,368 KB
testcase_32 WA -
testcase_33 WA -
testcase_34 AC 52 ms
60,032 KB
testcase_35 WA -
testcase_36 AC 51 ms
60,160 KB
権限があれば一括ダウンロードができます

ソースコード

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