結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー convexineq
提出日時 2020-12-03 07:41:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 62 ms / 5,000 ms
コード長 259 bytes
コンパイル時間 188 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 80,896 KB
最終ジャッジ日時 2024-09-13 15:15:33
合計ジャッジ時間 2,247 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding: utf-8
# Your code here!
import sys
read = sys.stdin.read
readline = sys.stdin.readline

n = int(readline())
*x, = map(int,readline().split())

r = [0]*7
for i in x:
    r[i] += 1
ans = v = max(r)
for i in range(7):
    if r[i]==v: ans = i
print(ans)
0