結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー titiatitia
提出日時 2021-02-07 00:30:13
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 64 ms / 5,000 ms
コード長 179 bytes
コンパイル時間 259 ms
コンパイル使用メモリ 10,608 KB
実行使用メモリ 10,012 KB
最終ジャッジ日時 2023-09-16 11:49:22
合計ジャッジ時間 1,937 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 21 ms
8,460 KB
testcase_01 AC 64 ms
10,012 KB
testcase_02 AC 18 ms
8,564 KB
testcase_03 AC 18 ms
8,568 KB
testcase_04 AC 18 ms
8,456 KB
testcase_05 AC 59 ms
9,904 KB
testcase_06 AC 18 ms
8,524 KB
testcase_07 AC 18 ms
8,492 KB
testcase_08 AC 18 ms
8,432 KB
testcase_09 AC 18 ms
8,412 KB
testcase_10 AC 18 ms
8,496 KB
testcase_11 AC 18 ms
8,568 KB
testcase_12 AC 18 ms
8,480 KB
testcase_13 AC 18 ms
8,564 KB
testcase_14 AC 44 ms
9,000 KB
testcase_15 AC 29 ms
8,692 KB
testcase_16 AC 52 ms
9,352 KB
testcase_17 AC 28 ms
8,612 KB
testcase_18 AC 51 ms
9,384 KB
testcase_19 AC 41 ms
8,924 KB
testcase_20 AC 62 ms
9,968 KB
testcase_21 AC 18 ms
8,476 KB
testcase_22 AC 34 ms
8,820 KB
testcase_23 AC 59 ms
9,704 KB
testcase_24 AC 61 ms
9,948 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
L=sorted(map(int,input().split()))
from collections import Counter
C=Counter(L)
MAX=max(C.values())

ANS=-1
for l in L:
    if C[l]==MAX:
        ANS=l

print(ANS)
0