結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー fagfagdfa
提出日時 2017-09-03 13:57:12
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 252 bytes
コンパイル時間 196 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 11,268 KB
最終ジャッジ日時 2024-11-06 20:01:37
合計ジャッジ時間 2,093 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19 RE * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

n = input()

score = [0 for i in range(n + 1)]

key = map(int, raw_input().split())

for i in key:
    score[i] += 1

maxes = [-1, -1]

for i in range(1, len(score)):
    if maxes[0] <= score[i]:
        maxes[0], maxes[1] = score[i], i

print maxes[1]
0