結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー R NR N
提出日時 2020-09-03 12:05:15
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 41 ms / 5,000 ms
コード長 253 bytes
コンパイル時間 304 ms
コンパイル使用メモリ 10,696 KB
実行使用メモリ 10,408 KB
最終ジャッジ日時 2023-08-15 00:06:11
合計ジャッジ時間 2,108 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
8,516 KB
testcase_01 AC 40 ms
10,408 KB
testcase_02 AC 18 ms
8,488 KB
testcase_03 AC 18 ms
8,552 KB
testcase_04 AC 18 ms
8,464 KB
testcase_05 AC 41 ms
10,352 KB
testcase_06 AC 18 ms
8,460 KB
testcase_07 AC 17 ms
8,452 KB
testcase_08 AC 18 ms
8,560 KB
testcase_09 AC 19 ms
8,492 KB
testcase_10 AC 18 ms
8,464 KB
testcase_11 AC 18 ms
8,484 KB
testcase_12 AC 18 ms
8,592 KB
testcase_13 AC 17 ms
8,596 KB
testcase_14 AC 31 ms
9,392 KB
testcase_15 AC 23 ms
8,980 KB
testcase_16 AC 35 ms
9,988 KB
testcase_17 AC 23 ms
8,888 KB
testcase_18 AC 34 ms
9,640 KB
testcase_19 AC 30 ms
9,416 KB
testcase_20 AC 40 ms
10,356 KB
testcase_21 AC 18 ms
8,476 KB
testcase_22 AC 26 ms
9,120 KB
testcase_23 AC 39 ms
10,384 KB
testcase_24 AC 39 ms
10,400 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding=UTF-8;

import collections;

n = int(input())
levelList = list(map(int, input().split()))

listCount = collections.Counter(levelList)
sortList = listCount.most_common()
sortList.sort(key=lambda x:(x[1], x[0]),reverse=True)
print(sortList[0][0])
0