結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー dangodango
提出日時 2023-06-05 10:55:34
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 42 ms / 5,000 ms
コード長 214 bytes
コンパイル時間 118 ms
コンパイル使用メモリ 10,628 KB
実行使用メモリ 9,964 KB
最終ジャッジ日時 2023-08-28 09:28:10
合計ジャッジ時間 2,061 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
7,868 KB
testcase_01 AC 41 ms
9,964 KB
testcase_02 AC 15 ms
7,812 KB
testcase_03 AC 15 ms
7,768 KB
testcase_04 AC 14 ms
7,756 KB
testcase_05 AC 42 ms
9,856 KB
testcase_06 AC 15 ms
7,760 KB
testcase_07 AC 14 ms
7,804 KB
testcase_08 AC 14 ms
7,764 KB
testcase_09 AC 14 ms
7,764 KB
testcase_10 AC 14 ms
7,860 KB
testcase_11 AC 15 ms
7,768 KB
testcase_12 AC 16 ms
7,816 KB
testcase_13 AC 15 ms
7,844 KB
testcase_14 AC 31 ms
8,876 KB
testcase_15 AC 22 ms
8,592 KB
testcase_16 AC 35 ms
9,356 KB
testcase_17 AC 21 ms
8,504 KB
testcase_18 AC 35 ms
9,300 KB
testcase_19 AC 29 ms
8,872 KB
testcase_20 AC 42 ms
9,816 KB
testcase_21 AC 15 ms
7,768 KB
testcase_22 AC 24 ms
8,536 KB
testcase_23 AC 38 ms
9,624 KB
testcase_24 AC 40 ms
9,860 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
L = list(map(int, input().split()))
C = [0 for _ in range(7)]
for R in L:
    C[R] += 1
Answer = 0
MA = 0
for J in range(1, 7):
    if C[J] >= MA:
        Answer = J
        MA = C[J]
print(Answer)
0