結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー S YS Y
提出日時 2024-10-21 22:45:29
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 402 bytes
コンパイル時間 1,172 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 12,904 KB
最終ジャッジ日時 2024-10-21 22:45:33
合計ジャッジ時間 3,654 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
10,880 KB
testcase_01 WA -
testcase_02 AC 32 ms
10,624 KB
testcase_03 AC 30 ms
10,624 KB
testcase_04 AC 31 ms
10,496 KB
testcase_05 AC 80 ms
12,608 KB
testcase_06 AC 31 ms
10,624 KB
testcase_07 AC 30 ms
10,624 KB
testcase_08 AC 30 ms
10,624 KB
testcase_09 AC 31 ms
10,752 KB
testcase_10 AC 31 ms
10,752 KB
testcase_11 AC 32 ms
10,624 KB
testcase_12 AC 31 ms
10,624 KB
testcase_13 AC 31 ms
10,624 KB
testcase_14 AC 61 ms
11,600 KB
testcase_15 AC 43 ms
11,392 KB
testcase_16 AC 68 ms
11,892 KB
testcase_17 WA -
testcase_18 AC 67 ms
12,032 KB
testcase_19 AC 56 ms
11,772 KB
testcase_20 AC 81 ms
12,484 KB
testcase_21 AC 33 ms
10,752 KB
testcase_22 WA -
testcase_23 AC 78 ms
12,132 KB
testcase_24 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

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

level_dict = {}

for l_now in l:
    if l_now not in level_dict.keys():
        level_dict[l_now] = 1
    else:
        level_dict[l_now] += 1

max_cnt = 0
max_level = 0

for level_now, cnt_now in level_dict.items():
    if cnt_now >= max_cnt and level_now > max_level:
        max_level = level_now
        max_cnt = cnt_now

print(max_level)
0