結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー sasakitikitisasakitikiti
提出日時 2016-08-03 10:49:07
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 71 ms / 5,000 ms
コード長 319 bytes
コンパイル時間 143 ms
コンパイル使用メモリ 10,780 KB
実行使用メモリ 10,120 KB
最終ジャッジ日時 2023-09-08 14:56:55
合計ジャッジ時間 1,972 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
8,196 KB
testcase_01 AC 71 ms
10,104 KB
testcase_02 AC 15 ms
7,924 KB
testcase_03 AC 16 ms
7,792 KB
testcase_04 AC 15 ms
7,868 KB
testcase_05 AC 67 ms
10,120 KB
testcase_06 AC 16 ms
7,928 KB
testcase_07 AC 16 ms
7,820 KB
testcase_08 AC 15 ms
7,928 KB
testcase_09 AC 15 ms
7,796 KB
testcase_10 AC 16 ms
7,792 KB
testcase_11 AC 16 ms
7,844 KB
testcase_12 AC 16 ms
7,828 KB
testcase_13 AC 16 ms
7,984 KB
testcase_14 AC 46 ms
9,008 KB
testcase_15 AC 30 ms
8,656 KB
testcase_16 AC 57 ms
9,444 KB
testcase_17 AC 27 ms
8,656 KB
testcase_18 AC 55 ms
9,160 KB
testcase_19 AC 43 ms
9,244 KB
testcase_20 AC 69 ms
10,104 KB
testcase_21 AC 17 ms
7,844 KB
testcase_22 AC 33 ms
8,792 KB
testcase_23 AC 65 ms
9,804 KB
testcase_24 AC 67 ms
9,956 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

dic={1:0,2:0,3:0,4:0,5:0,6:0}
n=int(input())
l=[int(i) for i in input().split()]
for i in range(n):
    dic[l[i]]=dic[l[i]]+1
    i=i+1
c=[]
for i in range(6):
    if dic[i+1]==max(dic[x] for x in dic):
        c.append(i+1)
    i=i+1
if len(c)>0:
    print(max(c))
else:
    print(max(dic, key=(lambda x: dic[x])))    
0