結果

問題 No.239 にゃんぱすー
ユーザー shamioshamio
提出日時 2020-03-04 08:38:24
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 641 ms / 2,000 ms
コード長 276 bytes
コンパイル時間 128 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 44,564 KB
最終ジャッジ日時 2024-04-22 00:57:52
合計ジャッジ時間 22,013 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 542 ms
44,436 KB
testcase_01 AC 533 ms
44,184 KB
testcase_02 AC 537 ms
44,316 KB
testcase_03 AC 535 ms
44,304 KB
testcase_04 AC 529 ms
44,188 KB
testcase_05 AC 542 ms
44,460 KB
testcase_06 AC 549 ms
44,432 KB
testcase_07 AC 541 ms
44,056 KB
testcase_08 AC 537 ms
44,180 KB
testcase_09 AC 537 ms
44,180 KB
testcase_10 AC 540 ms
44,052 KB
testcase_11 AC 540 ms
43,928 KB
testcase_12 AC 536 ms
44,052 KB
testcase_13 AC 541 ms
44,184 KB
testcase_14 AC 545 ms
44,060 KB
testcase_15 AC 538 ms
44,052 KB
testcase_16 AC 530 ms
44,048 KB
testcase_17 AC 537 ms
44,052 KB
testcase_18 AC 544 ms
43,924 KB
testcase_19 AC 537 ms
44,156 KB
testcase_20 AC 536 ms
44,056 KB
testcase_21 AC 540 ms
44,192 KB
testcase_22 AC 535 ms
44,056 KB
testcase_23 AC 547 ms
44,188 KB
testcase_24 AC 539 ms
44,176 KB
testcase_25 AC 541 ms
44,308 KB
testcase_26 AC 540 ms
44,060 KB
testcase_27 AC 641 ms
44,064 KB
testcase_28 AC 539 ms
44,180 KB
testcase_29 AC 538 ms
44,188 KB
testcase_30 AC 535 ms
44,180 KB
testcase_31 AC 537 ms
44,564 KB
testcase_32 AC 538 ms
44,056 KB
testcase_33 AC 536 ms
44,048 KB
testcase_34 AC 536 ms
44,184 KB
testcase_35 AC 544 ms
44,440 KB
testcase_36 AC 536 ms
44,184 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np

n = int(input())

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

bl = a == "nyanpass"
cnt = bl.sum(axis=0)
bl_cnt = cnt == n - 1

if bl_cnt.sum() == 1:
    for i, e in enumerate(bl_cnt, 1):
        if e:
            print(i)

else:
    print(-1)
0