結果

問題 No.706 多眼生物の調査
ユーザー kyo1kyo1
提出日時 2020-09-28 16:15:25
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 21 ms / 2,000 ms
コード長 231 bytes
コンパイル時間 182 ms
コンパイル使用メモリ 10,744 KB
実行使用メモリ 9,052 KB
最終ジャッジ日時 2023-09-14 23:21:32
合計ジャッジ時間 1,144 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
8,508 KB
testcase_01 AC 18 ms
8,468 KB
testcase_02 AC 19 ms
8,588 KB
testcase_03 AC 18 ms
8,576 KB
testcase_04 AC 19 ms
8,528 KB
testcase_05 AC 19 ms
8,664 KB
testcase_06 AC 21 ms
9,052 KB
testcase_07 AC 18 ms
8,612 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict

N = int(input())
S = [input() for _ in range(N)]

d = defaultdict(int)

for s in S:
    d[s.count("^")] += 1

mv = max(d.values())
cands = [k for k in d if mv == d[k]]

print(sorted(cands)[-1])
0