結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー mnrmnr
提出日時 2020-02-27 21:33:02
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 62 ms / 5,000 ms
コード長 228 bytes
コンパイル時間 336 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 12,656 KB
最終ジャッジ日時 2024-04-21 17:04:52
合計ジャッジ時間 2,233 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
10,752 KB
testcase_01 AC 59 ms
12,656 KB
testcase_02 AC 26 ms
10,624 KB
testcase_03 AC 26 ms
10,496 KB
testcase_04 AC 25 ms
10,624 KB
testcase_05 AC 60 ms
12,492 KB
testcase_06 AC 27 ms
10,752 KB
testcase_07 AC 26 ms
10,624 KB
testcase_08 AC 25 ms
10,624 KB
testcase_09 AC 25 ms
10,496 KB
testcase_10 AC 25 ms
10,752 KB
testcase_11 AC 25 ms
10,624 KB
testcase_12 AC 26 ms
10,624 KB
testcase_13 AC 25 ms
10,624 KB
testcase_14 AC 46 ms
11,728 KB
testcase_15 AC 35 ms
11,136 KB
testcase_16 AC 53 ms
11,896 KB
testcase_17 AC 33 ms
11,008 KB
testcase_18 AC 50 ms
11,888 KB
testcase_19 AC 43 ms
11,520 KB
testcase_20 AC 62 ms
12,488 KB
testcase_21 AC 26 ms
10,624 KB
testcase_22 AC 37 ms
11,264 KB
testcase_23 AC 58 ms
12,216 KB
testcase_24 AC 57 ms
12,488 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
L = list(map(int, input().split()))
S = {}
for i in range(6):
    S[i+1] = 0 
for i in L:
    S[i] += 1
popular = 0
for i in range(1,7):
    if S[i] >=  popular:
        popular = S[i]
        des = i
print(des)
0