結果

問題 No.921 ずんだアロー
ユーザー ptotqptotq
提出日時 2019-11-08 21:58:08
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
実行時間 -
コード長 206 bytes
コンパイル時間 115 ms
コンパイル使用メモリ 10,688 KB
実行使用メモリ 26,304 KB
最終ジャッジ日時 2023-10-13 03:49:56
合計ジャッジ時間 2,212 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
8,528 KB
testcase_01 AC 18 ms
8,572 KB
testcase_02 AC 18 ms
8,476 KB
testcase_03 AC 18 ms
8,432 KB
testcase_04 AC 18 ms
8,432 KB
testcase_05 AC 18 ms
8,472 KB
testcase_06 AC 18 ms
8,504 KB
testcase_07 AC 18 ms
8,544 KB
testcase_08 AC 18 ms
8,520 KB
testcase_09 AC 18 ms
8,424 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 22 ms
9,612 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 71 ms
26,304 KB
testcase_24 AC 54 ms
16,156 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter
N = int(input())
counter = Counter(map(int, input().split()))
size = list(counter.keys())

print(max(sum(counter[v] for v in size[::2]), sum(counter[v] for v in size[1::2])))
0