結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー ksomemo
提出日時 2017-10-05 23:27:49
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 292 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 12,160 KB
最終ジャッジ日時 2024-11-16 21:32:09
合計ジャッジ時間 2,112 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter


def main():
    N = int(input())

    c = Counter(map(int, input().split()))
    mc = c.most_common()
    max_count = mc[0][1]
    m = filter(lambda t: t[1] == max_count, mc)
    level = list(m)[-1][0]
    print(level)

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