結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー lam6er
提出日時 2025-03-20 18:47:54
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 60 ms / 5,000 ms
コード長 301 bytes
コンパイル時間 171 ms
コンパイル使用メモリ 82,596 KB
実行使用メモリ 78,360 KB
最終ジャッジ日時 2025-03-20 18:49:04
合計ジャッジ時間 2,363 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
levels = list(map(int, input().split()))
count = [0] * 7  # Indexes 0 to 6 (0 unused)

for lv in levels:
    count[lv] += 1

max_count = max(count)

# Check from highest level to lowest
for level in range(6, 0, -1):
    if count[level] == max_count:
        print(level)
        break
0