結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー ebicochinealebicochineal
提出日時 2016-06-16 15:30:56
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 41 ms / 5,000 ms
コード長 181 bytes
コンパイル時間 362 ms
コンパイル使用メモリ 10,540 KB
実行使用メモリ 10,188 KB
最終ジャッジ日時 2023-09-08 14:53:20
合計ジャッジ時間 1,929 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,808 KB
testcase_01 AC 41 ms
10,188 KB
testcase_02 AC 14 ms
7,804 KB
testcase_03 AC 15 ms
7,948 KB
testcase_04 AC 15 ms
7,740 KB
testcase_05 AC 33 ms
9,872 KB
testcase_06 AC 15 ms
7,820 KB
testcase_07 AC 15 ms
7,760 KB
testcase_08 AC 14 ms
7,792 KB
testcase_09 AC 15 ms
7,944 KB
testcase_10 AC 15 ms
7,804 KB
testcase_11 AC 15 ms
7,876 KB
testcase_12 AC 15 ms
7,820 KB
testcase_13 AC 15 ms
7,836 KB
testcase_14 AC 31 ms
8,884 KB
testcase_15 AC 21 ms
8,596 KB
testcase_16 AC 35 ms
9,416 KB
testcase_17 AC 20 ms
8,552 KB
testcase_18 AC 34 ms
9,372 KB
testcase_19 AC 28 ms
9,076 KB
testcase_20 AC 41 ms
9,980 KB
testcase_21 AC 15 ms
7,880 KB
testcase_22 AC 24 ms
8,712 KB
testcase_23 AC 39 ms
9,624 KB
testcase_24 AC 40 ms
9,900 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

input()
l = list(map(int, input().split()))
ans = (0, 0)
for i in set(l):
    n = int(l.count(i))
    if n > ans[0] or n == ans[0] and i > ans[1]:
        ans = (n, i)
print(ans[1])
0