結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー Zu_rinZu_rin
提出日時 2020-05-23 00:53:02
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 47 ms / 5,000 ms
コード長 231 bytes
コンパイル時間 280 ms
コンパイル使用メモリ 10,628 KB
実行使用メモリ 10,024 KB
最終ジャッジ日時 2023-07-28 12:40:20
合計ジャッジ時間 2,310 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,720 KB
testcase_01 AC 47 ms
10,024 KB
testcase_02 AC 15 ms
7,732 KB
testcase_03 AC 15 ms
7,736 KB
testcase_04 AC 16 ms
7,672 KB
testcase_05 AC 41 ms
9,780 KB
testcase_06 AC 16 ms
7,816 KB
testcase_07 AC 16 ms
7,852 KB
testcase_08 AC 16 ms
7,800 KB
testcase_09 AC 16 ms
7,760 KB
testcase_10 AC 15 ms
7,720 KB
testcase_11 AC 16 ms
7,760 KB
testcase_12 AC 15 ms
7,780 KB
testcase_13 AC 16 ms
7,860 KB
testcase_14 AC 34 ms
8,980 KB
testcase_15 AC 23 ms
8,532 KB
testcase_16 AC 39 ms
9,368 KB
testcase_17 AC 23 ms
8,612 KB
testcase_18 AC 38 ms
9,312 KB
testcase_19 AC 31 ms
8,900 KB
testcase_20 AC 44 ms
9,920 KB
testcase_21 AC 17 ms
7,740 KB
testcase_22 AC 26 ms
8,656 KB
testcase_23 AC 42 ms
9,648 KB
testcase_24 AC 43 ms
9,860 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    input()
    d = list(map(int, input().split()))
    ans = m = 0
    for i in range(7):
        if m <= d.count(i):
            m = d.count(i)
            ans = i
    print(ans)

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