結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー c-yanc-yan
提出日時 2020-03-27 21:03:08
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 161 bytes
コンパイル時間 195 ms
コンパイル使用メモリ 10,576 KB
実行使用メモリ 10,176 KB
最終ジャッジ日時 2023-08-30 16:50:30
合計ジャッジ時間 1,947 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,852 KB
testcase_01 AC 55 ms
10,176 KB
testcase_02 AC 16 ms
7,892 KB
testcase_03 AC 16 ms
7,988 KB
testcase_04 AC 15 ms
7,808 KB
testcase_05 AC 55 ms
9,996 KB
testcase_06 AC 15 ms
7,868 KB
testcase_07 RE -
testcase_08 AC 15 ms
7,956 KB
testcase_09 AC 15 ms
7,824 KB
testcase_10 AC 15 ms
7,824 KB
testcase_11 AC 16 ms
7,928 KB
testcase_12 RE -
testcase_13 RE -
testcase_14 AC 38 ms
8,984 KB
testcase_15 AC 25 ms
8,636 KB
testcase_16 AC 45 ms
9,464 KB
testcase_17 AC 25 ms
8,520 KB
testcase_18 AC 44 ms
9,368 KB
testcase_19 AC 36 ms
9,052 KB
testcase_20 AC 54 ms
10,036 KB
testcase_21 AC 16 ms
7,788 KB
testcase_22 AC 29 ms
8,608 KB
testcase_23 AC 51 ms
9,660 KB
testcase_24 AC 53 ms
9,884 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
L = list(map(int, input().split()))

t = [0] * (N + 1)
for l in L:
    t[l] += 1

m = max(t)
print(max(i for i in range(1, N + 1) if t[i] == m))
0