結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー Luoto-greenLuoto-green
提出日時 2017-07-05 11:39:56
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 95 ms / 5,000 ms
コード長 209 bytes
コンパイル時間 128 ms
コンパイル使用メモリ 10,660 KB
実行使用メモリ 10,060 KB
最終ジャッジ日時 2023-09-08 15:12:00
合計ジャッジ時間 2,309 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
7,776 KB
testcase_01 AC 94 ms
10,000 KB
testcase_02 AC 15 ms
7,708 KB
testcase_03 AC 15 ms
7,836 KB
testcase_04 AC 15 ms
7,844 KB
testcase_05 AC 78 ms
9,944 KB
testcase_06 AC 15 ms
7,856 KB
testcase_07 AC 15 ms
7,792 KB
testcase_08 AC 14 ms
7,848 KB
testcase_09 AC 15 ms
7,844 KB
testcase_10 AC 16 ms
7,848 KB
testcase_11 AC 15 ms
7,808 KB
testcase_12 AC 15 ms
7,848 KB
testcase_13 AC 15 ms
7,768 KB
testcase_14 AC 61 ms
8,960 KB
testcase_15 AC 34 ms
8,520 KB
testcase_16 AC 75 ms
9,328 KB
testcase_17 AC 32 ms
8,572 KB
testcase_18 AC 73 ms
9,364 KB
testcase_19 AC 58 ms
9,036 KB
testcase_20 AC 95 ms
10,060 KB
testcase_21 AC 17 ms
7,856 KB
testcase_22 AC 42 ms
8,604 KB
testcase_23 AC 90 ms
9,728 KB
testcase_24 AC 93 ms
9,780 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
s = list(map(int,input().split()))
sa = [0]*(max(s)+1)
for i in s:
    sa[i] += 1
for i in range(len(s)):
    if sa.count(max(sa))>1:
        sa[sa.index(max(sa))] -=1
print(sa.index(max(sa)))
0