結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー miya145592miya145592
提出日時 2023-05-03 19:08:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 75 ms / 5,000 ms
コード長 201 bytes
コンパイル時間 306 ms
コンパイル使用メモリ 87,192 KB
実行使用メモリ 89,128 KB
最終ジャッジ日時 2023-08-14 02:27:35
合計ジャッジ時間 3,208 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
76,096 KB
testcase_01 AC 75 ms
88,872 KB
testcase_02 AC 63 ms
71,404 KB
testcase_03 AC 57 ms
71,308 KB
testcase_04 AC 56 ms
71,316 KB
testcase_05 AC 73 ms
88,916 KB
testcase_06 AC 58 ms
71,336 KB
testcase_07 AC 57 ms
71,304 KB
testcase_08 AC 59 ms
71,168 KB
testcase_09 AC 57 ms
71,564 KB
testcase_10 AC 58 ms
71,388 KB
testcase_11 AC 58 ms
71,540 KB
testcase_12 AC 58 ms
71,324 KB
testcase_13 AC 57 ms
71,324 KB
testcase_14 AC 70 ms
83,104 KB
testcase_15 AC 63 ms
77,688 KB
testcase_16 AC 73 ms
85,736 KB
testcase_17 AC 64 ms
77,020 KB
testcase_18 AC 72 ms
85,580 KB
testcase_19 AC 68 ms
81,892 KB
testcase_20 AC 75 ms
89,128 KB
testcase_21 AC 61 ms
76,072 KB
testcase_22 AC 65 ms
79,128 KB
testcase_23 AC 75 ms
88,704 KB
testcase_24 AC 74 ms
88,912 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