結果

問題 No.239 にゃんぱすー
ユーザー yomo3yomo3
提出日時 2020-02-01 01:17:48
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 35 ms / 2,000 ms
コード長 209 bytes
コンパイル時間 107 ms
コンパイル使用メモリ 11,880 KB
実行使用メモリ 10,800 KB
最終ジャッジ日時 2023-10-17 18:11:09
合計ジャッジ時間 3,152 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
9,996 KB
testcase_01 AC 31 ms
9,996 KB
testcase_02 AC 29 ms
9,996 KB
testcase_03 AC 30 ms
9,996 KB
testcase_04 AC 30 ms
9,996 KB
testcase_05 AC 29 ms
9,996 KB
testcase_06 AC 29 ms
9,996 KB
testcase_07 AC 28 ms
9,996 KB
testcase_08 AC 28 ms
10,004 KB
testcase_09 AC 29 ms
10,016 KB
testcase_10 AC 29 ms
10,020 KB
testcase_11 AC 30 ms
10,044 KB
testcase_12 AC 30 ms
10,064 KB
testcase_13 AC 32 ms
10,096 KB
testcase_14 AC 29 ms
10,124 KB
testcase_15 AC 29 ms
10,168 KB
testcase_16 AC 29 ms
10,204 KB
testcase_17 AC 29 ms
10,252 KB
testcase_18 AC 30 ms
10,284 KB
testcase_19 AC 29 ms
10,332 KB
testcase_20 AC 30 ms
10,368 KB
testcase_21 AC 30 ms
10,432 KB
testcase_22 AC 30 ms
10,484 KB
testcase_23 AC 30 ms
10,556 KB
testcase_24 AC 30 ms
10,624 KB
testcase_25 AC 35 ms
10,688 KB
testcase_26 AC 31 ms
10,800 KB
testcase_27 AC 29 ms
10,004 KB
testcase_28 AC 30 ms
10,024 KB
testcase_29 AC 31 ms
10,068 KB
testcase_30 AC 30 ms
10,128 KB
testcase_31 AC 30 ms
10,204 KB
testcase_32 AC 32 ms
10,288 KB
testcase_33 AC 31 ms
10,376 KB
testcase_34 AC 31 ms
10,488 KB
testcase_35 AC 32 ms
10,632 KB
testcase_36 AC 31 ms
10,796 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = [list(input().split()) for _ in range(n)]

c = []
for j in range(n):
    if all(i==j or a[i][j] == 'nyanpass' for i in range(n)):
        c.append(j+1)

print(c[0] if len(c) == 1 else -1)
0