結果

問題 No.239 にゃんぱすー
ユーザー nbisconbisco
提出日時 2016-04-01 23:44:45
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 20 ms / 2,000 ms
コード長 376 bytes
コンパイル時間 313 ms
コンパイル使用メモリ 10,564 KB
実行使用メモリ 8,948 KB
最終ジャッジ日時 2023-07-25 16:12:58
合計ジャッジ時間 2,681 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,948 KB
testcase_01 AC 16 ms
7,784 KB
testcase_02 AC 16 ms
7,812 KB
testcase_03 AC 16 ms
7,788 KB
testcase_04 AC 16 ms
7,944 KB
testcase_05 AC 17 ms
7,700 KB
testcase_06 AC 16 ms
7,704 KB
testcase_07 AC 16 ms
7,776 KB
testcase_08 AC 16 ms
7,788 KB
testcase_09 AC 16 ms
7,764 KB
testcase_10 AC 16 ms
7,788 KB
testcase_11 AC 16 ms
7,776 KB
testcase_12 AC 16 ms
7,708 KB
testcase_13 AC 17 ms
7,700 KB
testcase_14 AC 17 ms
8,264 KB
testcase_15 AC 17 ms
8,260 KB
testcase_16 AC 17 ms
8,220 KB
testcase_17 AC 18 ms
8,232 KB
testcase_18 AC 18 ms
8,276 KB
testcase_19 AC 18 ms
8,140 KB
testcase_20 AC 17 ms
8,276 KB
testcase_21 AC 19 ms
8,588 KB
testcase_22 AC 18 ms
8,396 KB
testcase_23 AC 18 ms
8,604 KB
testcase_24 AC 20 ms
8,672 KB
testcase_25 AC 19 ms
8,664 KB
testcase_26 AC 20 ms
8,752 KB
testcase_27 AC 16 ms
7,784 KB
testcase_28 AC 16 ms
7,768 KB
testcase_29 AC 17 ms
7,812 KB
testcase_30 AC 17 ms
8,220 KB
testcase_31 AC 17 ms
8,236 KB
testcase_32 AC 17 ms
8,216 KB
testcase_33 AC 19 ms
8,600 KB
testcase_34 AC 19 ms
8,528 KB
testcase_35 AC 20 ms
8,744 KB
testcase_36 AC 20 ms
8,948 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
#fileencoding: utf-8

N = int(input())
mat = [[j for j in input().strip().split(" ")] for i in range(N)]

ren = -1
for i,v in enumerate(zip(*mat)):
    tmp = list(set([j for j in v if j != "-"]))
    if len(tmp) == 1 and tmp[0] == "nyanpass":
        if ren == -1:
            ren = i + 1
        else:
            ren = -1
            break
print(ren)
0