結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー ryosuke0825ryosuke0825
提出日時 2020-07-26 16:22:17
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 42 ms / 5,000 ms
コード長 232 bytes
コンパイル時間 91 ms
コンパイル使用メモリ 10,656 KB
実行使用メモリ 10,436 KB
最終ジャッジ日時 2023-09-11 02:36:09
合計ジャッジ時間 2,323 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 20 ms
8,624 KB
testcase_01 AC 41 ms
10,436 KB
testcase_02 AC 19 ms
8,496 KB
testcase_03 AC 18 ms
8,488 KB
testcase_04 AC 19 ms
8,476 KB
testcase_05 AC 42 ms
10,272 KB
testcase_06 AC 19 ms
8,472 KB
testcase_07 AC 18 ms
8,476 KB
testcase_08 AC 18 ms
8,444 KB
testcase_09 AC 18 ms
8,472 KB
testcase_10 AC 18 ms
8,480 KB
testcase_11 AC 18 ms
8,520 KB
testcase_12 AC 18 ms
8,536 KB
testcase_13 AC 19 ms
8,468 KB
testcase_14 AC 32 ms
9,360 KB
testcase_15 AC 24 ms
9,048 KB
testcase_16 AC 35 ms
9,880 KB
testcase_17 AC 24 ms
8,968 KB
testcase_18 AC 35 ms
10,020 KB
testcase_19 AC 31 ms
9,428 KB
testcase_20 AC 41 ms
10,396 KB
testcase_21 AC 19 ms
8,556 KB
testcase_22 AC 27 ms
9,124 KB
testcase_23 AC 39 ms
10,120 KB
testcase_24 AC 40 ms
10,420 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections

N = int(input())
L = list(map(int, input().split()))
c = collections.Counter(L)

cnt = 0
ans = 0
for i in range(1, 7):
    if i in c:
        if c[i] >= cnt:
            ans = i
            cnt = c[i]
print(ans)
0