結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー Luoto-greenLuoto-green
提出日時 2017-07-05 11:20:10
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 165 bytes
コンパイル時間 110 ms
コンパイル使用メモリ 12,288 KB
実行使用メモリ 13,404 KB
最終ジャッジ日時 2024-04-15 18:10:13
合計ジャッジ時間 2,246 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
10,368 KB
testcase_01 AC 71 ms
13,404 KB
testcase_02 AC 32 ms
10,496 KB
testcase_03 AC 32 ms
10,496 KB
testcase_04 WA -
testcase_05 AC 70 ms
13,132 KB
testcase_06 AC 32 ms
10,496 KB
testcase_07 RE -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 32 ms
10,368 KB
testcase_11 AC 33 ms
10,240 KB
testcase_12 RE -
testcase_13 RE -
testcase_14 AC 56 ms
11,904 KB
testcase_15 AC 44 ms
11,136 KB
testcase_16 AC 64 ms
12,352 KB
testcase_17 AC 42 ms
11,136 KB
testcase_18 AC 62 ms
12,544 KB
testcase_19 AC 54 ms
12,032 KB
testcase_20 AC 72 ms
13,260 KB
testcase_21 AC 32 ms
10,496 KB
testcase_22 AC 46 ms
11,392 KB
testcase_23 AC 70 ms
12,624 KB
testcase_24 AC 69 ms
13,056 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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