結果
問題 | No.2851 Make Pairs |
ユーザー |
![]() |
提出日時 | 2024-08-25 13:32:29 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 121 ms / 2,000 ms |
コード長 | 153 bytes |
コンパイル時間 | 331 ms |
コンパイル使用メモリ | 82,140 KB |
実行使用メモリ | 109,512 KB |
最終ジャッジ日時 | 2024-08-25 13:32:41 |
合計ジャッジ時間 | 1,460 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 |
ソースコード
from collections import Countern = int(input())a = list(map(int,input().split()))c = Counter(a)ans = 0for i, d in c.items():ans += d//2print(ans)