結果
問題 | No.2851 Make Pairs |
ユーザー |
|
提出日時 | 2024-08-25 13:33:13 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 123 ms / 2,000 ms |
コード長 | 164 bytes |
コンパイル時間 | 181 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 109,992 KB |
最終ジャッジ日時 | 2024-08-25 13:33:16 |
合計ジャッジ時間 | 1,458 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 |
ソースコード
from collections import CounterN = int(input())A = list(map(int, input().split()))cnt = Counter(A)ans = 0for i, j in cnt.items():ans += j // 2print(ans)