結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー miya145592miya145592
提出日時 2023-05-03 19:08:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 56 ms / 5,000 ms
コード長 201 bytes
コンパイル時間 294 ms
コンパイル使用メモリ 82,020 KB
実行使用メモリ 79,108 KB
最終ジャッジ日時 2024-05-01 15:26:45
合計ジャッジ時間 2,186 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
59,372 KB
testcase_01 AC 54 ms
78,820 KB
testcase_02 AC 36 ms
52,408 KB
testcase_03 AC 37 ms
52,184 KB
testcase_04 AC 36 ms
52,220 KB
testcase_05 AC 56 ms
79,108 KB
testcase_06 AC 36 ms
51,872 KB
testcase_07 AC 36 ms
52,276 KB
testcase_08 AC 40 ms
53,080 KB
testcase_09 AC 36 ms
52,912 KB
testcase_10 AC 36 ms
52,492 KB
testcase_11 AC 36 ms
53,116 KB
testcase_12 AC 37 ms
52,276 KB
testcase_13 AC 37 ms
51,880 KB
testcase_14 AC 50 ms
70,508 KB
testcase_15 AC 44 ms
63,860 KB
testcase_16 AC 53 ms
74,972 KB
testcase_17 AC 42 ms
63,300 KB
testcase_18 AC 50 ms
73,668 KB
testcase_19 AC 47 ms
70,108 KB
testcase_20 AC 55 ms
78,680 KB
testcase_21 AC 40 ms
59,352 KB
testcase_22 AC 44 ms
66,060 KB
testcase_23 AC 54 ms
77,664 KB
testcase_24 AC 56 ms
78,656 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
L = list(map(int, input().split()))
c = [0 for _ in range(7)]
for l in L:
    c[l]+=1
ans = 0
ma = 0
for i in range(1, 7):
    if c[i]>=ma:
        ans = i
        ma = c[i]
print(ans)
0