結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー qibqib
提出日時 2023-04-18 19:47:20
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 80 ms / 5,000 ms
コード長 180 bytes
コンパイル時間 381 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 78,976 KB
最終ジャッジ日時 2024-04-21 21:03:21
合計ジャッジ時間 3,243 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
59,264 KB
testcase_01 AC 79 ms
78,848 KB
testcase_02 AC 48 ms
51,840 KB
testcase_03 AC 48 ms
51,840 KB
testcase_04 AC 51 ms
51,584 KB
testcase_05 AC 79 ms
78,720 KB
testcase_06 AC 48 ms
51,584 KB
testcase_07 AC 47 ms
51,584 KB
testcase_08 AC 47 ms
51,840 KB
testcase_09 AC 49 ms
51,712 KB
testcase_10 AC 48 ms
51,712 KB
testcase_11 AC 48 ms
51,456 KB
testcase_12 AC 48 ms
52,096 KB
testcase_13 AC 47 ms
51,712 KB
testcase_14 AC 70 ms
70,656 KB
testcase_15 AC 60 ms
63,360 KB
testcase_16 AC 73 ms
74,496 KB
testcase_17 AC 59 ms
62,848 KB
testcase_18 AC 73 ms
74,496 KB
testcase_19 AC 69 ms
69,504 KB
testcase_20 AC 80 ms
78,976 KB
testcase_21 AC 55 ms
59,008 KB
testcase_22 AC 64 ms
65,408 KB
testcase_23 AC 78 ms
78,336 KB
testcase_24 AC 79 ms
78,336 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

cnt = {}
for x in l:
  cnt[x] = cnt.get(x, 0) + 1

vs = list(cnt.items())
vs.sort(key=lambda x: (x[1], x[0]))
print(vs[-1][0])
0