結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー konabekonabe
提出日時 2018-02-20 18:44:01
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 262 bytes
コンパイル時間 81 ms
コンパイル使用メモリ 10,684 KB
実行使用メモリ 10,140 KB
最終ジャッジ日時 2023-09-27 23:19:05
合計ジャッジ時間 2,514 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 13 ms
7,824 KB
testcase_04 AC 14 ms
7,836 KB
testcase_05 AC 49 ms
10,008 KB
testcase_06 AC 14 ms
7,832 KB
testcase_07 AC 12 ms
7,780 KB
testcase_08 WA -
testcase_09 AC 13 ms
7,904 KB
testcase_10 AC 13 ms
7,828 KB
testcase_11 AC 14 ms
7,900 KB
testcase_12 AC 13 ms
7,764 KB
testcase_13 AC 13 ms
7,960 KB
testcase_14 WA -
testcase_15 AC 22 ms
8,608 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 34 ms
8,980 KB
testcase_20 AC 51 ms
9,936 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
L = list(map(int, input().split()))
M = {}
for Li in L:
    if Li in M.keys():
        M[Li]+=1
    else:
        M[Li] = 1

M_sorted = sorted(M.items(), key=lambda x: x[1])
M_sorted = sorted(M_sorted, key=lambda x: x[0])

print(M_sorted[-1][0])
0