結果

問題 No.79 過小評価ダメ・ゼッタイ
コンテスト
ユーザー もぐら 3.0
提出日時 2023-11-14 14:42:44
言語 PyPy3
(7.3.23 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
実行時間 -
コード長 282 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 237 ms
コンパイル使用メモリ 95,828 KB
実行使用メモリ 96,768 KB
最終ジャッジ日時 2026-09-04 13:14:55
合計ジャッジ時間 4,269 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 18 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

from collections import defaultdict
N = int(input())
L = list(map(int,input().split()))

counter= defaultdict(int)

for l in L:
    counter[l]+=1


ans=0
now=0
for c in counter.items():
    if c[1]>=now:
        now=c[1]
        if c[0]>ans:
            ans=c[0]
        
print(ans)
0