結果

問題 No.921 ずんだアロー
ユーザー lloyzlloyz
提出日時 2022-03-28 00:44:10
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 189 bytes
コンパイル時間 110 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 25,152 KB
最終ジャッジ日時 2024-04-24 10:19:24
合計ジャッジ時間 2,860 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
10,496 KB
testcase_01 AC 27 ms
10,496 KB
testcase_02 AC 27 ms
10,624 KB
testcase_03 AC 28 ms
10,496 KB
testcase_04 AC 26 ms
10,496 KB
testcase_05 WA -
testcase_06 AC 28 ms
10,752 KB
testcase_07 AC 27 ms
10,496 KB
testcase_08 AC 26 ms
10,368 KB
testcase_09 AC 28 ms
10,624 KB
testcase_10 AC 93 ms
19,948 KB
testcase_11 WA -
testcase_12 AC 43 ms
13,184 KB
testcase_13 AC 77 ms
18,968 KB
testcase_14 AC 84 ms
19,832 KB
testcase_15 AC 61 ms
17,036 KB
testcase_16 AC 34 ms
11,648 KB
testcase_17 AC 83 ms
20,712 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 112 ms
25,152 KB
testcase_24 AC 72 ms
20,576 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter

n = int(input())
A = list(map(int, input().split()))
counter = Counter(A)
ans = (n + 1) // 2
for cnt in counter.values():
    ans = max(ans, cnt)
print(ans)
0