結果
問題 | No.2851 Make Pairs |
ユーザー |
![]() |
提出日時 | 2024-08-25 13:44:29 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 258 ms / 2,000 ms |
コード長 | 209 bytes |
コンパイル時間 | 135 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 36,700 KB |
最終ジャッジ日時 | 2024-08-25 13:44:31 |
合計ジャッジ時間 | 1,879 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 |
ソースコード
from collections import CounterN = int(input())A = list(map(int, input().split()))counter = Counter()for a in A:counter[a] += 1ans = 0for _, v in counter.items():ans += v // 2print(ans)