結果

問題 No.2851 Make Pairs
ユーザー tassei903tassei903
提出日時 2024-08-25 13:31:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 150 ms / 2,000 ms
コード長 465 bytes
コンパイル時間 256 ms
コンパイル使用メモリ 82,540 KB
実行使用メモリ 109,740 KB
最終ジャッジ日時 2024-08-25 13:32:05
合計ジャッジ時間 1,446 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
53,948 KB
testcase_01 AC 40 ms
53,956 KB
testcase_02 AC 117 ms
107,808 KB
testcase_03 AC 121 ms
107,108 KB
testcase_04 AC 150 ms
106,420 KB
testcase_05 AC 91 ms
106,724 KB
testcase_06 AC 123 ms
109,740 KB
testcase_07 AC 40 ms
54,112 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda :sys.stdin.readline()[:-1]
ni = lambda :int(input())
na = lambda :list(map(int,input().split()))
yes = lambda :print("yes");Yes = lambda :print("Yes");YES = lambda : print("YES")
no = lambda :print("no");No = lambda :print("No");NO = lambda : print("NO")
#######################################################################

n = ni()
from collections import Counter
a = Counter(na())
ans = 0
for i in a:
    ans += a[i] // 2

print(ans)
0