結果

問題 No.706 多眼生物の調査
コンテスト
ユーザー はむ吉🐹
提出日時 2018-06-30 13:43:21
言語 Python3
(3.14.3 + numpy 2.4.2 + scipy 1.17.0)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
AC  
実行時間 110 ms / 2,000 ms
コード長 350 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 343 ms
コンパイル使用メモリ 20,704 KB
実行使用メモリ 15,360 KB
最終ジャッジ日時 2026-03-21 16:02:30
合計ジャッジ時間 1,825 ms
ジャッジサーバーID
(参考情報)
judge2_1 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 5
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#!/usr/bin/env python3

import collections


def most_common_number(ss):
    ctr = collections.Counter(s.count("^") for s in ss)
    return max(k for k, v in ctr.items() if v == ctr.most_common(1)[0][1])


def main():
    n = int(input())
    ss = [input() for _ in range(n)]
    print(most_common_number(ss))


if __name__ == '__main__':
    main()
0