結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー あかりきあかりき
提出日時 2021-02-08 07:28:36
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 113 ms / 5,000 ms
コード長 236 bytes
コンパイル時間 1,174 ms
コンパイル使用メモリ 86,684 KB
実行使用メモリ 89,708 KB
最終ジャッジ日時 2023-09-18 12:15:46
合計ジャッジ時間 4,149 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 95 ms
77,148 KB
testcase_01 AC 112 ms
89,352 KB
testcase_02 AC 92 ms
71,236 KB
testcase_03 AC 89 ms
71,236 KB
testcase_04 AC 89 ms
71,240 KB
testcase_05 AC 112 ms
89,388 KB
testcase_06 AC 90 ms
71,440 KB
testcase_07 AC 89 ms
71,604 KB
testcase_08 AC 91 ms
71,564 KB
testcase_09 AC 93 ms
71,336 KB
testcase_10 AC 90 ms
71,644 KB
testcase_11 AC 91 ms
71,424 KB
testcase_12 AC 91 ms
71,544 KB
testcase_13 AC 89 ms
71,632 KB
testcase_14 AC 102 ms
83,972 KB
testcase_15 AC 99 ms
78,792 KB
testcase_16 AC 105 ms
86,344 KB
testcase_17 AC 96 ms
78,284 KB
testcase_18 AC 106 ms
86,456 KB
testcase_19 AC 103 ms
83,144 KB
testcase_20 AC 110 ms
89,708 KB
testcase_21 AC 95 ms
77,368 KB
testcase_22 AC 99 ms
80,072 KB
testcase_23 AC 110 ms
89,364 KB
testcase_24 AC 113 ms
89,368 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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))
0