結果
| 問題 | No.79 過小評価ダメ・ゼッタイ | 
| コンテスト | |
| ユーザー |  lam6er | 
| 提出日時 | 2025-03-20 21:02:56 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 55 ms / 5,000 ms | 
| コード長 | 301 bytes | 
| コンパイル時間 | 155 ms | 
| コンパイル使用メモリ | 82,212 KB | 
| 実行使用メモリ | 78,228 KB | 
| 最終ジャッジ日時 | 2025-03-20 21:03:08 | 
| 合計ジャッジ時間 | 2,333 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 22 | 
ソースコード
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
            
            
            
        