結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー かいかいかいかい
提出日時 2021-03-07 18:09:36
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 66 ms / 5,000 ms
コード長 216 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 12,772 KB
最終ジャッジ日時 2024-04-17 08:29:45
合計ジャッジ時間 2,207 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
10,880 KB
testcase_01 AC 65 ms
12,772 KB
testcase_02 AC 29 ms
10,624 KB
testcase_03 AC 30 ms
10,624 KB
testcase_04 AC 30 ms
10,624 KB
testcase_05 AC 63 ms
12,484 KB
testcase_06 AC 29 ms
10,624 KB
testcase_07 AC 29 ms
10,624 KB
testcase_08 AC 28 ms
10,624 KB
testcase_09 AC 27 ms
10,624 KB
testcase_10 AC 27 ms
10,624 KB
testcase_11 AC 27 ms
10,624 KB
testcase_12 AC 29 ms
10,624 KB
testcase_13 AC 28 ms
10,752 KB
testcase_14 AC 47 ms
11,728 KB
testcase_15 AC 37 ms
11,136 KB
testcase_16 AC 54 ms
12,140 KB
testcase_17 AC 36 ms
11,136 KB
testcase_18 AC 54 ms
12,160 KB
testcase_19 AC 48 ms
11,900 KB
testcase_20 AC 66 ms
12,608 KB
testcase_21 AC 30 ms
10,752 KB
testcase_22 AC 39 ms
11,264 KB
testcase_23 AC 62 ms
12,260 KB
testcase_24 AC 63 ms
12,488 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
L = list(map(int, input().split(' ')))

a = {1: 0, 2: 0, 3: 0, 4: 0, 5: 0, 6: 0}

for i in L:
    a[i] += 1

r = 0
y = 0

for i in a:
    if r <= a[i]:
        r = a[i]
        y = i
    

print(y)

0