結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー kawacchukawacchu
提出日時 2019-03-16 18:49:11
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 75 ms / 5,000 ms
コード長 331 bytes
コンパイル時間 87 ms
コンパイル使用メモリ 10,816 KB
実行使用メモリ 10,184 KB
最終ジャッジ日時 2023-09-14 15:25:17
合計ジャッジ時間 2,281 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
7,948 KB
testcase_01 AC 75 ms
10,184 KB
testcase_02 AC 16 ms
7,852 KB
testcase_03 AC 17 ms
7,816 KB
testcase_04 AC 16 ms
7,864 KB
testcase_05 AC 69 ms
10,032 KB
testcase_06 AC 15 ms
7,892 KB
testcase_07 AC 15 ms
7,860 KB
testcase_08 AC 16 ms
7,912 KB
testcase_09 AC 15 ms
7,780 KB
testcase_10 AC 16 ms
7,856 KB
testcase_11 AC 17 ms
7,864 KB
testcase_12 AC 20 ms
7,812 KB
testcase_13 AC 16 ms
7,956 KB
testcase_14 AC 47 ms
8,980 KB
testcase_15 AC 28 ms
8,696 KB
testcase_16 AC 57 ms
9,640 KB
testcase_17 AC 28 ms
8,612 KB
testcase_18 AC 54 ms
9,244 KB
testcase_19 AC 44 ms
9,036 KB
testcase_20 AC 68 ms
9,896 KB
testcase_21 AC 17 ms
7,864 KB
testcase_22 AC 34 ms
8,728 KB
testcase_23 AC 65 ms
9,820 KB
testcase_24 AC 66 ms
10,056 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
L = list(map(int,input().split()))
D = {}
for i in range(1,7) :
    D[str(i)] = 0
for i in range(N) :
    D[str(L[i])] += 1
D = sorted(D.items(),key=lambda x:x[1],reverse=True)
ma = D[0][1]
A = []
for i in range(len(D)) :
    if ma == D[i][1] :
        A.append(int(D[i][0]))
    else :
        break
print(max(A))
0