結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー yuki2006
提出日時 2014-11-27 22:47:05
言語 Python2
(2.7.18)
結果
AC  
実行時間 80 ms / 5,000 ms
コード長 217 bytes
コンパイル時間 71 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 8,060 KB
最終ジャッジ日時 2024-06-26 07:11:37
合計ジャッジ時間 1,801 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(raw_input())
count = [0] * 7
mx = 0
for i in map(int, raw_input().split()):
    count[i] += 1
    mx = max(mx, count[i])
for i in xrange(6, 0, -1):
    if count[i] == mx:
        print i
        break
0