結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー ryusukeryusuke
提出日時 2022-02-07 21:14:45
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 101 ms / 5,000 ms
コード長 203 bytes
コンパイル時間 330 ms
コンパイル使用メモリ 86,956 KB
実行使用メモリ 90,076 KB
最終ジャッジ日時 2023-09-04 09:10:29
合計ジャッジ時間 3,905 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
77,028 KB
testcase_01 AC 101 ms
89,740 KB
testcase_02 AC 82 ms
76,588 KB
testcase_03 AC 82 ms
76,592 KB
testcase_04 AC 82 ms
76,672 KB
testcase_05 AC 98 ms
90,076 KB
testcase_06 AC 82 ms
76,592 KB
testcase_07 AC 82 ms
76,884 KB
testcase_08 AC 86 ms
76,640 KB
testcase_09 AC 84 ms
76,660 KB
testcase_10 AC 82 ms
76,600 KB
testcase_11 AC 80 ms
76,600 KB
testcase_12 AC 82 ms
76,596 KB
testcase_13 AC 82 ms
76,592 KB
testcase_14 AC 92 ms
83,800 KB
testcase_15 AC 86 ms
78,352 KB
testcase_16 AC 96 ms
86,552 KB
testcase_17 AC 88 ms
78,188 KB
testcase_18 AC 97 ms
86,492 KB
testcase_19 AC 92 ms
82,996 KB
testcase_20 AC 101 ms
89,672 KB
testcase_21 AC 84 ms
77,028 KB
testcase_22 AC 90 ms
80,124 KB
testcase_23 AC 98 ms
89,776 KB
testcase_24 AC 99 ms
89,652 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

cnt = [0] * 10 ** 5
for i in l:
    cnt[i - 1] += 1

ma = max(cnt)
for i in reversed(range(10 ** 5)):
    if cnt[i] == ma:
        exit(print(i + 1))
0