結果
| 問題 | No.79 過小評価ダメ・ゼッタイ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-04-18 19:47:20 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 42 ms / 5,000 ms |
| + 828µs | |
| コード長 | 180 bytes |
| 記録 | |
| コンパイル時間 | 71 ms |
| コンパイル使用メモリ | 80,768 KB |
| 実行使用メモリ | 81,280 KB |
| 最終ジャッジ日時 | 2026-09-15 22:59:01 |
| 合計ジャッジ時間 | 2,878 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
n = int(input())
l = list(map(int, input().split()))
cnt = {}
for x in l:
cnt[x] = cnt.get(x, 0) + 1
vs = list(cnt.items())
vs.sort(key=lambda x: (x[1], x[0]))
print(vs[-1][0])