結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー tnodinotnodino
提出日時 2022-02-26 20:35:53
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 53 ms / 5,000 ms
コード長 254 bytes
コンパイル時間 625 ms
コンパイル使用メモリ 10,672 KB
実行使用メモリ 10,524 KB
最終ジャッジ日時 2023-09-18 00:06:19
合計ジャッジ時間 2,940 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 20 ms
8,644 KB
testcase_01 AC 53 ms
10,476 KB
testcase_02 AC 19 ms
8,436 KB
testcase_03 AC 19 ms
8,536 KB
testcase_04 AC 19 ms
8,504 KB
testcase_05 AC 53 ms
10,260 KB
testcase_06 AC 19 ms
8,392 KB
testcase_07 AC 18 ms
8,520 KB
testcase_08 AC 18 ms
8,468 KB
testcase_09 AC 18 ms
8,576 KB
testcase_10 AC 19 ms
8,576 KB
testcase_11 AC 19 ms
8,524 KB
testcase_12 AC 18 ms
8,604 KB
testcase_13 AC 18 ms
8,416 KB
testcase_14 AC 38 ms
9,300 KB
testcase_15 AC 27 ms
8,936 KB
testcase_16 AC 45 ms
9,924 KB
testcase_17 AC 26 ms
9,024 KB
testcase_18 AC 46 ms
9,944 KB
testcase_19 AC 37 ms
9,456 KB
testcase_20 AC 53 ms
10,296 KB
testcase_21 AC 19 ms
8,476 KB
testcase_22 AC 30 ms
8,956 KB
testcase_23 AC 50 ms
10,140 KB
testcase_24 AC 52 ms
10,524 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict
N = int(input())
L = list(map(int,input().split()))
dic = defaultdict(int)
for i in range(N):
    dic[L[i]] += 1
M = max(dic.values())
ans = 0
for k,v in dic.items():
    if M == v:
        ans = max(ans, k)
print(ans)
0