結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー OhnumaOhnuma
提出日時 2020-04-08 17:39:31
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 39 ms / 5,000 ms
コード長 211 bytes
コンパイル時間 348 ms
コンパイル使用メモリ 10,660 KB
実行使用メモリ 10,420 KB
最終ジャッジ日時 2023-09-25 23:17:23
合計ジャッジ時間 2,244 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
8,544 KB
testcase_01 AC 39 ms
10,364 KB
testcase_02 AC 17 ms
8,352 KB
testcase_03 AC 17 ms
8,408 KB
testcase_04 AC 17 ms
8,424 KB
testcase_05 AC 39 ms
10,364 KB
testcase_06 AC 17 ms
8,528 KB
testcase_07 AC 17 ms
8,400 KB
testcase_08 AC 17 ms
8,472 KB
testcase_09 AC 17 ms
8,416 KB
testcase_10 AC 17 ms
8,356 KB
testcase_11 AC 18 ms
8,476 KB
testcase_12 AC 18 ms
8,356 KB
testcase_13 AC 18 ms
8,396 KB
testcase_14 AC 30 ms
9,328 KB
testcase_15 AC 23 ms
8,856 KB
testcase_16 AC 34 ms
9,860 KB
testcase_17 AC 22 ms
8,856 KB
testcase_18 AC 33 ms
9,964 KB
testcase_19 AC 28 ms
9,340 KB
testcase_20 AC 39 ms
10,296 KB
testcase_21 AC 20 ms
8,448 KB
testcase_22 AC 26 ms
9,020 KB
testcase_23 AC 38 ms
10,008 KB
testcase_24 AC 39 ms
10,420 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter
n = int(input())
L = list(map(int,input().split()))
ctr = Counter(L)
ret = 0
for k,v in ctr.items():
    if v!=max(ctr.values()):
        continue
    ret = max(ret, k)
print(ret)
0