結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー akitsugu777akitsugu777
提出日時 2019-09-18 16:03:51
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 53 ms / 5,000 ms
コード長 212 bytes
コンパイル時間 77 ms
コンパイル使用メモリ 10,616 KB
実行使用メモリ 10,128 KB
最終ジャッジ日時 2023-09-22 17:52:37
合計ジャッジ時間 1,832 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,964 KB
testcase_01 AC 51 ms
10,128 KB
testcase_02 AC 15 ms
7,852 KB
testcase_03 AC 15 ms
7,800 KB
testcase_04 AC 15 ms
7,844 KB
testcase_05 AC 52 ms
9,976 KB
testcase_06 AC 15 ms
7,844 KB
testcase_07 AC 15 ms
7,896 KB
testcase_08 AC 15 ms
7,800 KB
testcase_09 AC 15 ms
7,968 KB
testcase_10 AC 15 ms
7,800 KB
testcase_11 AC 15 ms
7,844 KB
testcase_12 AC 15 ms
7,796 KB
testcase_13 AC 15 ms
7,848 KB
testcase_14 AC 37 ms
9,020 KB
testcase_15 AC 25 ms
8,596 KB
testcase_16 AC 43 ms
9,324 KB
testcase_17 AC 23 ms
8,620 KB
testcase_18 AC 42 ms
9,296 KB
testcase_19 AC 36 ms
9,116 KB
testcase_20 AC 52 ms
10,056 KB
testcase_21 AC 16 ms
7,848 KB
testcase_22 AC 28 ms
8,736 KB
testcase_23 AC 51 ms
9,688 KB
testcase_24 AC 53 ms
10,008 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

d = {}
for i in L:
    if not i in d:
        d[i] = 1
    else:
        d[i] += 1

x = max(d.values())
y = [k for k, v in d.items() if v == x]

print(max(y))
0