結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー ryusukeryusuke
提出日時 2022-02-07 21:14:08
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 191 bytes
コンパイル時間 356 ms
コンパイル使用メモリ 87,224 KB
実行使用メモリ 90,028 KB
最終ジャッジ日時 2023-09-04 09:09:43
合計ジャッジ時間 3,946 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
76,300 KB
testcase_01 AC 95 ms
89,968 KB
testcase_02 AC 74 ms
71,212 KB
testcase_03 AC 74 ms
71,204 KB
testcase_04 AC 72 ms
71,364 KB
testcase_05 AC 94 ms
90,028 KB
testcase_06 AC 72 ms
71,340 KB
testcase_07 RE -
testcase_08 AC 73 ms
71,104 KB
testcase_09 AC 76 ms
71,212 KB
testcase_10 AC 73 ms
71,260 KB
testcase_11 AC 75 ms
71,104 KB
testcase_12 RE -
testcase_13 RE -
testcase_14 AC 93 ms
83,656 KB
testcase_15 AC 83 ms
77,828 KB
testcase_16 AC 91 ms
86,632 KB
testcase_17 AC 81 ms
77,388 KB
testcase_18 AC 92 ms
86,260 KB
testcase_19 AC 89 ms
82,544 KB
testcase_20 AC 96 ms
89,712 KB
testcase_21 AC 82 ms
76,236 KB
testcase_22 AC 82 ms
79,476 KB
testcase_23 AC 95 ms
89,712 KB
testcase_24 AC 96 ms
89,788 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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

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