結果

問題 No.2851 Make Pairs
ユーザー solo
提出日時 2025-01-26 11:02:49
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 102 ms / 2,000 ms
コード長 256 bytes
コンパイル時間 214 ms
コンパイル使用メモリ 12,288 KB
実行使用メモリ 33,956 KB
最終ジャッジ日時 2025-01-26 11:02:51
合計ジャッジ時間 1,772 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections
def main():
	double()

def double():
	n, a = [input() for _ in range(2)]
	a = a.split()
	a_new = collections.Counter(a)
	count = 0
	for i in a_new.values():
		if i > 1:
			count += i // 2
	print(count)

if __name__ == '__main__':
	main()
0