結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー nanaenanae
提出日時 2017-01-04 04:42:13
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 44 ms / 5,000 ms
コード長 330 bytes
コンパイル時間 128 ms
コンパイル使用メモリ 10,564 KB
実行使用メモリ 10,424 KB
最終ジャッジ日時 2023-09-08 15:03:50
合計ジャッジ時間 1,935 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
8,480 KB
testcase_01 AC 43 ms
10,424 KB
testcase_02 AC 19 ms
8,588 KB
testcase_03 AC 18 ms
8,444 KB
testcase_04 AC 19 ms
8,472 KB
testcase_05 AC 44 ms
10,332 KB
testcase_06 AC 18 ms
8,588 KB
testcase_07 AC 19 ms
8,628 KB
testcase_08 AC 19 ms
8,492 KB
testcase_09 AC 19 ms
8,500 KB
testcase_10 AC 19 ms
8,612 KB
testcase_11 AC 19 ms
8,532 KB
testcase_12 AC 18 ms
8,496 KB
testcase_13 AC 19 ms
8,612 KB
testcase_14 AC 34 ms
9,336 KB
testcase_15 AC 26 ms
9,032 KB
testcase_16 AC 38 ms
9,856 KB
testcase_17 AC 24 ms
8,928 KB
testcase_18 AC 37 ms
9,560 KB
testcase_19 AC 32 ms
9,440 KB
testcase_20 AC 44 ms
10,328 KB
testcase_21 AC 19 ms
8,500 KB
testcase_22 AC 28 ms
9,240 KB
testcase_23 AC 42 ms
10,412 KB
testcase_24 AC 43 ms
10,360 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# yukicoder No.79 過小評価ダメ・ゼッタイ

from collections import Counter

N = int(input())
L = [int(i) for i in input().split()]

c = Counter(L)
max_v = max(c.values())

# 最も回答の多いレベルの集合
s_mode = {i for (i, j) in c.items() if j == max_v}

# 値が最大のレベルを出力
print(max(s_mode))
0