結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー ohanaohana
提出日時 2023-10-20 11:49:36
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 185 bytes
コンパイル時間 160 ms
コンパイル使用メモリ 81,668 KB
実行使用メモリ 80,636 KB
最終ジャッジ日時 2023-10-20 11:49:43
合計ジャッジ時間 2,551 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 48 ms
61,812 KB
testcase_01 AC 66 ms
80,616 KB
testcase_02 AC 43 ms
53,488 KB
testcase_03 AC 43 ms
53,488 KB
testcase_04 AC 69 ms
53,488 KB
testcase_05 AC 65 ms
80,636 KB
testcase_06 AC 42 ms
53,488 KB
testcase_07 AC 43 ms
53,488 KB
testcase_08 AC 43 ms
53,488 KB
testcase_09 AC 43 ms
53,488 KB
testcase_10 AC 43 ms
53,488 KB
testcase_11 AC 43 ms
53,488 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 58 ms
72,712 KB
testcase_15 AC 52 ms
65,184 KB
testcase_16 AC 62 ms
77,472 KB
testcase_17 AC 51 ms
64,792 KB
testcase_18 AC 62 ms
77,436 KB
testcase_19 AC 58 ms
71,716 KB
testcase_20 AC 68 ms
80,636 KB
testcase_21 AC 49 ms
61,812 KB
testcase_22 AC 55 ms
68,720 KB
testcase_23 AC 67 ms
80,552 KB
testcase_24 AC 66 ms
80,596 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 D:
    if D[d] >= mx:
        mx, ind = D[d], d
print(ind)
0