結果
| 問題 |
No.2851 Make Pairs
|
| コンテスト | |
| ユーザー |
prin_kemkem
|
| 提出日時 | 2024-08-25 13:37:52 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 172 ms / 2,000 ms |
| コード長 | 739 bytes |
| コンパイル時間 | 148 ms |
| コンパイル使用メモリ | 82,324 KB |
| 実行使用メモリ | 143,100 KB |
| 最終ジャッジ日時 | 2024-08-25 13:37:59 |
| 合計ジャッジ時間 | 1,952 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 |
ソースコード
from collections import defaultdict, deque, Counter
# from functools import cache
# import copy
from itertools import combinations, permutations, product, accumulate, groupby, chain
# from more_itertools import distinct_permutations
from heapq import heapify, heappop, heappush
import math
import bisect
from pprint import pprint
from random import randint, shuffle, randrange
import sys
# sys.setrecursionlimit(200000)
input = lambda: sys.stdin.readline().rstrip('\n')
inf = float('inf')
mod1 = 10**9+7
mod2 = 998244353
def ceil_div(x, y): return -(-x//y)
#################################################
N = int(input())
A = list(map(int, input().split()))
cnt = Counter(A)
ans = 0
for v in cnt.values():
ans += v//2
print(ans)
prin_kemkem