結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー もぐら 3.0
提出日時 2023-11-14 14:42:44
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 282 bytes
コンパイル時間 327 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 80,640 KB
最終ジャッジ日時 2024-09-26 03:36:59
合計ジャッジ時間 3,010 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 18 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

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