結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー daku9640daku9640
提出日時 2016-10-06 04:50:08
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 40 ms / 5,000 ms
コード長 208 bytes
コンパイル時間 115 ms
コンパイル使用メモリ 10,612 KB
実行使用メモリ 10,396 KB
最終ジャッジ日時 2023-09-08 15:00:09
合計ジャッジ時間 1,722 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
8,440 KB
testcase_01 AC 39 ms
10,396 KB
testcase_02 AC 17 ms
8,524 KB
testcase_03 AC 18 ms
8,408 KB
testcase_04 AC 18 ms
8,584 KB
testcase_05 AC 40 ms
10,272 KB
testcase_06 AC 18 ms
8,472 KB
testcase_07 AC 17 ms
8,396 KB
testcase_08 AC 18 ms
8,416 KB
testcase_09 AC 18 ms
8,452 KB
testcase_10 AC 17 ms
8,508 KB
testcase_11 AC 17 ms
8,448 KB
testcase_12 AC 17 ms
8,444 KB
testcase_13 AC 17 ms
8,612 KB
testcase_14 AC 30 ms
9,288 KB
testcase_15 AC 23 ms
9,008 KB
testcase_16 AC 35 ms
9,828 KB
testcase_17 AC 23 ms
8,852 KB
testcase_18 AC 34 ms
10,020 KB
testcase_19 AC 29 ms
9,356 KB
testcase_20 AC 39 ms
10,276 KB
testcase_21 AC 18 ms
8,576 KB
testcase_22 AC 26 ms
8,984 KB
testcase_23 AC 37 ms
9,972 KB
testcase_24 AC 39 ms
10,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter
N = int(input())
cnt = Counter(list(map(int, input().split())))
al = 0
ac = 0
for a, b in cnt.most_common():
    if ac <= b and al <= a:
        ac = b
        al = a
print(al)
0