結果

問題 No.239 にゃんぱすー
ユーザー akitsugu777akitsugu777
提出日時 2021-01-19 14:34:44
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 221 bytes
コンパイル時間 464 ms
コンパイル使用メモリ 10,736 KB
実行使用メモリ 8,996 KB
最終ジャッジ日時 2023-08-22 12:11:44
合計ジャッジ時間 2,896 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,716 KB
testcase_01 AC 16 ms
7,784 KB
testcase_02 WA -
testcase_03 AC 15 ms
7,816 KB
testcase_04 AC 16 ms
7,940 KB
testcase_05 WA -
testcase_06 AC 15 ms
7,944 KB
testcase_07 AC 15 ms
7,884 KB
testcase_08 AC 16 ms
7,780 KB
testcase_09 WA -
testcase_10 AC 16 ms
7,872 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 16 ms
7,804 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 17 ms
8,236 KB
testcase_21 WA -
testcase_22 AC 17 ms
8,544 KB
testcase_23 AC 19 ms
8,540 KB
testcase_24 AC 18 ms
8,496 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 15 ms
7,800 KB
testcase_28 AC 16 ms
7,792 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 16 ms
8,204 KB
testcase_32 WA -
testcase_33 WA -
testcase_34 AC 18 ms
8,476 KB
testcase_35 WA -
testcase_36 AC 18 ms
8,996 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
L = [input().split() for _ in range(N)]

X = [m+1 for m in range(N) for n in range(N) if L[n][m] == '-' or L[n][m] == 'nyanpass']
Y = [n for n in range(N) if X.count(n) == 4]

print([-1, *Y][len(Y) == 1])
0