結果
| 問題 |
No.79 過小評価ダメ・ゼッタイ
|
| コンテスト | |
| ユーザー |
あかりき
|
| 提出日時 | 2021-02-08 07:28:36 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 63 ms / 5,000 ms |
| コード長 | 236 bytes |
| コンパイル時間 | 162 ms |
| コンパイル使用メモリ | 82,552 KB |
| 実行使用メモリ | 81,400 KB |
| 最終ジャッジ日時 | 2024-07-05 03:10:00 |
| 合計ジャッジ時間 | 2,606 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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))
あかりき