結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー otsunekootsuneko
提出日時 2021-05-07 08:54:07
言語 PyPy3
(7.3.13)
結果
WA  
実行時間 -
コード長 240 bytes
コンパイル時間 319 ms
コンパイル使用メモリ 86,824 KB
実行使用メモリ 89,580 KB
最終ジャッジ日時 2023-10-13 00:00:59
合計ジャッジ時間 4,444 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 105 ms
77,200 KB
testcase_01 WA -
testcase_02 AC 102 ms
71,600 KB
testcase_03 AC 99 ms
71,376 KB
testcase_04 AC 99 ms
71,652 KB
testcase_05 AC 120 ms
89,500 KB
testcase_06 AC 98 ms
71,496 KB
testcase_07 AC 95 ms
71,508 KB
testcase_08 AC 98 ms
71,392 KB
testcase_09 AC 98 ms
71,632 KB
testcase_10 AC 98 ms
71,620 KB
testcase_11 AC 98 ms
71,660 KB
testcase_12 AC 99 ms
71,708 KB
testcase_13 AC 98 ms
71,624 KB
testcase_14 AC 112 ms
84,096 KB
testcase_15 AC 106 ms
78,668 KB
testcase_16 AC 113 ms
86,240 KB
testcase_17 WA -
testcase_18 AC 116 ms
86,576 KB
testcase_19 AC 114 ms
83,040 KB
testcase_20 AC 123 ms
89,580 KB
testcase_21 AC 104 ms
77,040 KB
testcase_22 WA -
testcase_23 AC 117 ms
89,444 KB
testcase_24 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter
N = int(input())
L = list(map(int,input().split()))
d = Counter(L)

max_v = 0
level = 0
for key in d:
    if d[key] >= max_v and key > level:
        max_v = d[key]
        level = key
print(level)
0