結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー rpy3cpprpy3cpp
提出日時 2015-07-20 21:44:52
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 203 bytes
コンパイル時間 257 ms
コンパイル使用メモリ 10,644 KB
実行使用メモリ 10,044 KB
最終ジャッジ日時 2023-09-22 20:46:11
合計ジャッジ時間 2,355 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,800 KB
testcase_01 AC 55 ms
10,044 KB
testcase_02 AC 15 ms
7,832 KB
testcase_03 AC 15 ms
7,972 KB
testcase_04 AC 15 ms
7,904 KB
testcase_05 AC 54 ms
9,992 KB
testcase_06 AC 14 ms
7,820 KB
testcase_07 RE -
testcase_08 AC 14 ms
7,792 KB
testcase_09 AC 14 ms
7,752 KB
testcase_10 AC 14 ms
7,792 KB
testcase_11 AC 17 ms
7,888 KB
testcase_12 RE -
testcase_13 RE -
testcase_14 AC 38 ms
8,924 KB
testcase_15 AC 25 ms
8,640 KB
testcase_16 AC 45 ms
9,424 KB
testcase_17 AC 24 ms
8,596 KB
testcase_18 AC 44 ms
9,456 KB
testcase_19 AC 36 ms
9,032 KB
testcase_20 AC 55 ms
9,884 KB
testcase_21 AC 15 ms
7,816 KB
testcase_22 AC 28 ms
8,596 KB
testcase_23 AC 53 ms
9,788 KB
testcase_24 AC 54 ms
9,872 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
Ls = list(map(int, input().split()))
freq = [0] * (N + 1)
for l in Ls:
    freq[l] += 1
fmax = max(freq)
for i in range(N, 0, -1):
    if freq[i] == fmax:
        print(i)
        break
0