結果
| 問題 | No.79 過小評価ダメ・ゼッタイ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-11-25 08:39:27 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 45 ms / 5,000 ms |
| コード長 | 243 bytes |
| 記録 | |
| コンパイル時間 | 224 ms |
| コンパイル使用メモリ | 85,248 KB |
| 実行使用メモリ | 80,512 KB |
| 最終ジャッジ日時 | 2026-04-13 13:01:48 |
| 合計ジャッジ時間 | 2,503 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
from collections import Counter N = int(input()) L = list(map(int, input().split())) c = Counter(L) max_cnt = 0 ans = -1 for i, j in list(c.items()): if j > max_cnt: max_cnt = j ans = i elif j == max_cnt and i > ans: ans = i print(ans)