結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー HIROPON87069639
提出日時 2016-02-21 10:37:40
言語 Python2
(2.7.18)
結果
AC  
実行時間 226 ms / 5,000 ms
コード長 318 bytes
コンパイル時間 96 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 10,416 KB
最終ジャッジ日時 2024-06-26 07:49:01
合計ジャッジ時間 2,163 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-
N = input()
inp = map(int, raw_input().split())
inp.sort()
inp.append(0)
cntmax = 0
cnt = 1
level = 0
for i in range(0, len(inp)-1):
    if inp[i] == inp[i+1]:
        cnt += cnt
    else:
        if cntmax <= cnt:
            cntmax = cnt
            level = inp[i]
        cnt = 1
print level
0