結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー notsix4notsix4
提出日時 2021-11-25 09:06:48
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 40 ms / 5,000 ms
コード長 265 bytes
コンパイル時間 904 ms
コンパイル使用メモリ 10,484 KB
実行使用メモリ 10,476 KB
最終ジャッジ日時 2023-09-10 08:40:21
合計ジャッジ時間 2,959 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
8,596 KB
testcase_01 AC 40 ms
10,476 KB
testcase_02 AC 19 ms
8,472 KB
testcase_03 AC 18 ms
8,384 KB
testcase_04 AC 18 ms
8,448 KB
testcase_05 AC 40 ms
10,228 KB
testcase_06 AC 18 ms
8,532 KB
testcase_07 AC 18 ms
8,524 KB
testcase_08 AC 18 ms
8,480 KB
testcase_09 AC 19 ms
8,416 KB
testcase_10 AC 19 ms
8,528 KB
testcase_11 AC 18 ms
8,448 KB
testcase_12 AC 18 ms
8,520 KB
testcase_13 AC 18 ms
8,444 KB
testcase_14 AC 31 ms
9,260 KB
testcase_15 AC 23 ms
8,972 KB
testcase_16 AC 35 ms
9,832 KB
testcase_17 AC 22 ms
8,968 KB
testcase_18 AC 33 ms
9,980 KB
testcase_19 AC 29 ms
9,332 KB
testcase_20 AC 39 ms
10,344 KB
testcase_21 AC 18 ms
8,556 KB
testcase_22 AC 25 ms
8,964 KB
testcase_23 AC 38 ms
10,028 KB
testcase_24 AC 39 ms
10,420 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter
n=int(input())
l=list(map(int,input().split()))
#l=input().split()
d=Counter(l)
dic2 = sorted(d.items(), key=lambda x:x[1], reverse=True)
dic3=dict(dic2)
a=dic2[0][1]

keys = [k for k, v in dic3.items() if v == a]
print(max(keys))


0