結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー ohanaohana
提出日時 2023-10-20 11:51:18
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 67 ms / 5,000 ms
コード長 200 bytes
コンパイル時間 158 ms
コンパイル使用メモリ 81,588 KB
実行使用メモリ 80,516 KB
最終ジャッジ日時 2023-10-20 11:51:22
合計ジャッジ時間 2,504 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 46 ms
61,692 KB
testcase_01 AC 67 ms
80,496 KB
testcase_02 AC 44 ms
53,376 KB
testcase_03 AC 42 ms
53,376 KB
testcase_04 AC 42 ms
53,376 KB
testcase_05 AC 63 ms
80,516 KB
testcase_06 AC 41 ms
53,376 KB
testcase_07 AC 41 ms
53,376 KB
testcase_08 AC 44 ms
53,376 KB
testcase_09 AC 41 ms
53,376 KB
testcase_10 AC 41 ms
53,376 KB
testcase_11 AC 41 ms
53,376 KB
testcase_12 AC 42 ms
53,376 KB
testcase_13 AC 41 ms
53,376 KB
testcase_14 AC 56 ms
72,592 KB
testcase_15 AC 49 ms
65,064 KB
testcase_16 AC 64 ms
77,352 KB
testcase_17 AC 50 ms
64,672 KB
testcase_18 AC 60 ms
77,316 KB
testcase_19 AC 56 ms
71,596 KB
testcase_20 AC 62 ms
80,516 KB
testcase_21 AC 46 ms
61,692 KB
testcase_22 AC 52 ms
68,600 KB
testcase_23 AC 62 ms
80,432 KB
testcase_24 AC 62 ms
80,476 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter

n = int(input())
A = list(map(int, input().split()))

mx, ind = 0, 0
D = Counter(A)
for d in sorted(D.keys()):
    if D[d] >= mx:
        mx, ind = D[d], d
print(ind)
0