結果
| 問題 | No.79 過小評価ダメ・ゼッタイ |
| コンテスト | |
| ユーザー |
あかりき
|
| 提出日時 | 2021-02-08 07:28:36 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 43 ms / 5,000 ms |
| コード長 | 236 bytes |
| 記録 | |
| コンパイル時間 | 186 ms |
| コンパイル使用メモリ | 85,204 KB |
| 実行使用メモリ | 80,852 KB |
| 最終ジャッジ日時 | 2026-03-26 09:59:57 |
| 合計ジャッジ時間 | 2,247 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
import collections
n=int(input())
l=list(map(int,input().split()))
c=collections.Counter(l)
c2=list(c.most_common())
x=c2[0][1]
ans=[]
for i in range(len(c2)):
if c2[i][1]==x:
ans.append(c2[i][0])
else:
break
print(max(ans))
あかりき