結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー RK PythonRK Python
提出日時 2020-06-01 15:46:16
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 36 ms / 5,000 ms
コード長 158 bytes
コンパイル時間 125 ms
コンパイル使用メモリ 10,484 KB
実行使用メモリ 10,448 KB
最終ジャッジ日時 2023-08-14 03:26:07
合計ジャッジ時間 2,109 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
8,664 KB
testcase_01 AC 36 ms
10,448 KB
testcase_02 AC 16 ms
8,472 KB
testcase_03 AC 15 ms
8,428 KB
testcase_04 AC 15 ms
8,456 KB
testcase_05 AC 36 ms
10,304 KB
testcase_06 AC 16 ms
8,432 KB
testcase_07 AC 17 ms
8,448 KB
testcase_08 AC 16 ms
8,432 KB
testcase_09 AC 16 ms
8,428 KB
testcase_10 AC 15 ms
8,548 KB
testcase_11 AC 15 ms
8,604 KB
testcase_12 AC 16 ms
8,444 KB
testcase_13 AC 16 ms
8,432 KB
testcase_14 AC 28 ms
9,412 KB
testcase_15 AC 21 ms
9,036 KB
testcase_16 AC 32 ms
9,908 KB
testcase_17 AC 19 ms
8,888 KB
testcase_18 AC 30 ms
9,612 KB
testcase_19 AC 26 ms
9,412 KB
testcase_20 AC 35 ms
10,276 KB
testcase_21 AC 16 ms
8,472 KB
testcase_22 AC 22 ms
9,164 KB
testcase_23 AC 34 ms
10,428 KB
testcase_24 AC 36 ms
10,400 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter
N = int(input())
LC = Counter([int(i) for i in input().split()]).most_common()
print(max(LC, key = lambda x: (x[1], x[0]))[0])
0