結果

問題 No.239 にゃんぱすー
ユーザー naoe123naoe123
提出日時 2020-01-13 16:29:49
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 139 ms / 2,000 ms
コード長 348 bytes
コンパイル時間 87 ms
コンパイル使用メモリ 10,780 KB
実行使用メモリ 32,236 KB
最終ジャッジ日時 2023-08-22 20:54:27
合計ジャッジ時間 7,234 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 130 ms
29,668 KB
testcase_01 AC 131 ms
29,436 KB
testcase_02 AC 129 ms
29,444 KB
testcase_03 AC 133 ms
29,452 KB
testcase_04 AC 136 ms
29,592 KB
testcase_05 AC 130 ms
29,496 KB
testcase_06 AC 131 ms
29,452 KB
testcase_07 AC 127 ms
29,624 KB
testcase_08 AC 130 ms
29,404 KB
testcase_09 AC 131 ms
29,544 KB
testcase_10 AC 132 ms
29,716 KB
testcase_11 AC 132 ms
29,688 KB
testcase_12 AC 132 ms
29,644 KB
testcase_13 AC 133 ms
29,892 KB
testcase_14 AC 136 ms
29,856 KB
testcase_15 AC 134 ms
30,148 KB
testcase_16 AC 133 ms
30,068 KB
testcase_17 AC 132 ms
30,380 KB
testcase_18 AC 135 ms
30,308 KB
testcase_19 AC 134 ms
30,508 KB
testcase_20 AC 134 ms
30,360 KB
testcase_21 AC 134 ms
30,624 KB
testcase_22 AC 135 ms
30,988 KB
testcase_23 AC 138 ms
31,236 KB
testcase_24 AC 138 ms
31,476 KB
testcase_25 AC 137 ms
31,892 KB
testcase_26 AC 138 ms
31,928 KB
testcase_27 AC 130 ms
29,436 KB
testcase_28 AC 132 ms
29,648 KB
testcase_29 AC 132 ms
29,736 KB
testcase_30 AC 133 ms
29,944 KB
testcase_31 AC 132 ms
30,036 KB
testcase_32 AC 139 ms
30,396 KB
testcase_33 AC 133 ms
30,688 KB
testcase_34 AC 133 ms
30,960 KB
testcase_35 AC 136 ms
31,724 KB
testcase_36 AC 137 ms
32,236 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np

N=int(input())
a = [input().split() for l in range(N)]

b=np.array(a).T.tolist()

flag_list=[]
for i in b:
    flag=True
    for j in i:
        if j!='-' and j!='nyanpass':
            flag=False
            break
    flag_list.append(flag)

if flag_list.count(True)==1:
    print(flag_list.index(True)+1)
else:
    print(-1)

0