結果

問題 No.239 にゃんぱすー
ユーザー R NR N
提出日時 2020-10-11 09:28:01
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 432 bytes
コンパイル時間 171 ms
コンパイル使用メモリ 10,976 KB
実行使用メモリ 9,376 KB
最終ジャッジ日時 2023-09-27 22:48:04
合計ジャッジ時間 2,608 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
8,552 KB
testcase_01 AC 18 ms
8,472 KB
testcase_02 AC 18 ms
8,468 KB
testcase_03 AC 18 ms
8,464 KB
testcase_04 AC 17 ms
8,552 KB
testcase_05 AC 17 ms
8,576 KB
testcase_06 AC 17 ms
8,460 KB
testcase_07 AC 16 ms
8,464 KB
testcase_08 AC 19 ms
8,616 KB
testcase_09 AC 16 ms
8,480 KB
testcase_10 AC 17 ms
8,504 KB
testcase_11 AC 16 ms
8,508 KB
testcase_12 AC 16 ms
8,516 KB
testcase_13 AC 17 ms
8,660 KB
testcase_14 AC 17 ms
8,596 KB
testcase_15 AC 17 ms
8,648 KB
testcase_16 AC 18 ms
8,816 KB
testcase_17 AC 17 ms
8,700 KB
testcase_18 AC 17 ms
8,760 KB
testcase_19 AC 17 ms
8,932 KB
testcase_20 AC 17 ms
8,844 KB
testcase_21 AC 17 ms
8,904 KB
testcase_22 AC 19 ms
8,956 KB
testcase_23 AC 19 ms
8,964 KB
testcase_24 AC 18 ms
9,224 KB
testcase_25 AC 19 ms
9,100 KB
testcase_26 AC 20 ms
9,172 KB
testcase_27 AC 16 ms
8,476 KB
testcase_28 AC 15 ms
8,628 KB
testcase_29 AC 17 ms
8,692 KB
testcase_30 WA -
testcase_31 AC 17 ms
8,684 KB
testcase_32 AC 17 ms
8,868 KB
testcase_33 AC 18 ms
8,772 KB
testcase_34 AC 17 ms
9,132 KB
testcase_35 AC 19 ms
9,172 KB
testcase_36 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding=utf-8:
import collections

n = int(input())
persons = dict([(i, 0) for i in range(n)])
greeting = list()

for i in range(n):
    greeting.append(list(map(str, input().split())))

for j in range(n):
    for k in range(n):
        if greeting[j][k] == "nyanpass":
            persons[k] += 1

max_k = [k for k, v in persons.items() if v == max(persons.values())]

if len(max_k) == 1:
    print(max_k[0]+1)
else:
    print(-1)
0