結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー otsunekootsuneko
提出日時 2021-05-07 08:56:28
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 123 ms / 5,000 ms
コード長 311 bytes
コンパイル時間 2,135 ms
コンパイル使用メモリ 86,568 KB
実行使用メモリ 89,664 KB
最終ジャッジ日時 2023-10-13 00:02:43
合計ジャッジ時間 5,304 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 108 ms
76,996 KB
testcase_01 AC 120 ms
89,488 KB
testcase_02 AC 100 ms
71,360 KB
testcase_03 AC 101 ms
71,588 KB
testcase_04 AC 99 ms
71,392 KB
testcase_05 AC 123 ms
89,424 KB
testcase_06 AC 96 ms
71,556 KB
testcase_07 AC 99 ms
71,172 KB
testcase_08 AC 105 ms
71,336 KB
testcase_09 AC 101 ms
71,384 KB
testcase_10 AC 102 ms
71,540 KB
testcase_11 AC 99 ms
71,520 KB
testcase_12 AC 100 ms
71,596 KB
testcase_13 AC 98 ms
71,548 KB
testcase_14 AC 116 ms
84,264 KB
testcase_15 AC 106 ms
78,620 KB
testcase_16 AC 119 ms
86,368 KB
testcase_17 AC 106 ms
77,956 KB
testcase_18 AC 118 ms
86,432 KB
testcase_19 AC 113 ms
82,856 KB
testcase_20 AC 123 ms
89,664 KB
testcase_21 AC 105 ms
77,052 KB
testcase_22 AC 111 ms
79,992 KB
testcase_23 AC 119 ms
89,092 KB
testcase_24 AC 122 ms
89,468 KB
権限があれば一括ダウンロードができます

ソースコード

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:
        max_v = d[key]
        level = key
    elif d[key] == max_v and key > level:
        max_v = d[key]
        level = key
print(level)
0