結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー mitsushinomitsushino
提出日時 2018-04-10 10:21:03
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 42 ms / 5,000 ms
コード長 266 bytes
コンパイル時間 258 ms
コンパイル使用メモリ 10,608 KB
実行使用メモリ 10,460 KB
最終ジャッジ日時 2023-09-09 03:44:34
合計ジャッジ時間 2,810 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 20 ms
8,540 KB
testcase_01 AC 42 ms
10,364 KB
testcase_02 AC 18 ms
8,584 KB
testcase_03 AC 18 ms
8,432 KB
testcase_04 AC 18 ms
8,516 KB
testcase_05 AC 41 ms
10,412 KB
testcase_06 AC 18 ms
8,640 KB
testcase_07 AC 19 ms
8,440 KB
testcase_08 AC 19 ms
8,516 KB
testcase_09 AC 18 ms
8,476 KB
testcase_10 AC 18 ms
8,504 KB
testcase_11 AC 19 ms
8,616 KB
testcase_12 AC 18 ms
8,512 KB
testcase_13 AC 18 ms
8,616 KB
testcase_14 AC 32 ms
9,480 KB
testcase_15 AC 24 ms
8,936 KB
testcase_16 AC 36 ms
9,824 KB
testcase_17 AC 24 ms
8,940 KB
testcase_18 AC 35 ms
9,996 KB
testcase_19 AC 31 ms
9,556 KB
testcase_20 AC 41 ms
10,460 KB
testcase_21 AC 19 ms
8,672 KB
testcase_22 AC 26 ms
9,004 KB
testcase_23 AC 39 ms
10,212 KB
testcase_24 AC 40 ms
10,416 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter

n = int(input())
l_list = list(map(int, input().split()))
c = Counter(l_list)
l = c.most_common()[0][0]
cnt = c.most_common()[0][1]
for t in c.most_common():
    if t[1] < cnt:
        break
    if t[0] > l:
        l = t[0]
print(l)
0