結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー 🍡yurahuna🍡yurahuna
提出日時 2016-02-27 00:11:54
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 255 bytes
コンパイル時間 163 ms
コンパイル使用メモリ 10,736 KB
実行使用メモリ 10,432 KB
最終ジャッジ日時 2023-08-02 03:33:57
合計ジャッジ時間 2,034 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
8,584 KB
testcase_01 WA -
testcase_02 AC 17 ms
8,476 KB
testcase_03 AC 18 ms
8,484 KB
testcase_04 AC 17 ms
8,588 KB
testcase_05 AC 39 ms
10,292 KB
testcase_06 AC 17 ms
8,444 KB
testcase_07 AC 16 ms
8,512 KB
testcase_08 AC 16 ms
8,600 KB
testcase_09 AC 17 ms
8,616 KB
testcase_10 AC 17 ms
8,524 KB
testcase_11 AC 17 ms
8,440 KB
testcase_12 AC 17 ms
8,508 KB
testcase_13 AC 19 ms
8,476 KB
testcase_14 AC 29 ms
9,476 KB
testcase_15 AC 23 ms
9,016 KB
testcase_16 AC 34 ms
9,868 KB
testcase_17 WA -
testcase_18 AC 32 ms
10,052 KB
testcase_19 AC 28 ms
9,380 KB
testcase_20 AC 39 ms
10,428 KB
testcase_21 AC 18 ms
8,588 KB
testcase_22 WA -
testcase_23 AC 36 ms
10,044 KB
testcase_24 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-

from collections import Counter

N = int(input())
a = Counter(list(map(int, input().split())))

ans = -1
mx = -1
for key, num in a.items():
    if mx <= num:
        mx = num
        if ans < key:
            ans = key
print(ans)
0