結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー 👑 colognecologne
提出日時 2022-01-26 19:24:06
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 89 ms / 5,000 ms
コード長 285 bytes
コンパイル時間 672 ms
コンパイル使用メモリ 87,100 KB
実行使用メモリ 91,392 KB
最終ジャッジ日時 2023-08-25 01:30:12
合計ジャッジ時間 3,778 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
76,208 KB
testcase_01 AC 84 ms
91,228 KB
testcase_02 AC 65 ms
71,572 KB
testcase_03 AC 65 ms
71,284 KB
testcase_04 AC 67 ms
71,620 KB
testcase_05 AC 86 ms
91,336 KB
testcase_06 AC 66 ms
71,288 KB
testcase_07 AC 65 ms
71,288 KB
testcase_08 AC 64 ms
71,348 KB
testcase_09 AC 65 ms
71,296 KB
testcase_10 AC 64 ms
71,444 KB
testcase_11 AC 64 ms
71,352 KB
testcase_12 AC 64 ms
71,228 KB
testcase_13 AC 65 ms
71,452 KB
testcase_14 AC 76 ms
84,588 KB
testcase_15 AC 72 ms
78,020 KB
testcase_16 AC 82 ms
87,480 KB
testcase_17 AC 69 ms
77,800 KB
testcase_18 AC 83 ms
87,440 KB
testcase_19 AC 77 ms
83,500 KB
testcase_20 AC 87 ms
91,392 KB
testcase_21 AC 69 ms
76,220 KB
testcase_22 AC 76 ms
79,720 KB
testcase_23 AC 86 ms
91,164 KB
testcase_24 AC 89 ms
91,292 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys


def input(): return sys.stdin.readline().rstrip()


def main():
    int(input())  # N
    *L, = map(int, input().split())

    D = {}
    for i in L:
        D[i] = D.get(i, 0) + 1

    print(max(D.keys(), key=lambda x: (D[x], x)))


if __name__ == '__main__':
    main()
0