結果

問題 No.2851 Make Pairs
ユーザー prd_xxxprd_xxx
提出日時 2024-08-25 13:33:01
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 122 ms / 2,000 ms
コード長 156 bytes
コンパイル時間 156 ms
コンパイル使用メモリ 82,312 KB
実行使用メモリ 108,740 KB
最終ジャッジ日時 2024-08-25 13:33:05
合計ジャッジ時間 1,432 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 45 ms
54,800 KB
testcase_01 AC 42 ms
55,452 KB
testcase_02 AC 116 ms
108,740 KB
testcase_03 AC 119 ms
107,876 KB
testcase_04 AC 122 ms
106,484 KB
testcase_05 AC 95 ms
106,644 KB
testcase_06 AC 119 ms
108,664 KB
testcase_07 AC 39 ms
53,544 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int, input().split()))

from collections import Counter
c = Counter(A)
ans = 0
for v in c.values():
    ans += v//2
print(ans)
0