Multiset Đếm Bội
Points
15
AC Rate
0.0%
Time limit
1.0 s
Memory limit
256M
Group
ds
- Dòng đầu: số nguyên dương $Q$ $(1 \le Q \le 10^5)$.
- $Q$ dòng tiếp theo, mỗi dòng là một thao tác.
Dữ liệu ra
- Với mỗi thao tác loại
3, in ra số lần xuất hiện.
Ví dụ
| Input | Output |
|---|---|
| 7\n1 5\n1 5\n1 3\n3 5\n2 5\n3 5\n3 7 | 2\n1\n0 |
Giới hạn
- $1 \le Q \le 10^5$
- $|x| \le 10^9$
- Thời gian: 1 giây
- Bộ nhớ: 256 MB
Community Discussion