
Some nodes are crime scenes that must be watched. Holmes can place stakeout teams on some nodes. A team placed at node $$$u$$$ watches every node $$$v$$$ such that:
Every crime scene must be watched by at least one team. Your task is to find the minimum number of teams needed.
Important: the list of crime scenes may contain duplicates; a node is a crime scene if it appears at least once.
The first line contains an integer $$$t$$$ ($$$1\le t\le 5$$$) — the number of test cases.
For each test case:
It is guaranteed that the sum of $$$n$$$ over all test cases does not exceed $$$2\cdot 10^5$$$.
For each test case, print one integer — the minimum number of stakeout teams needed to watch all crime scenes.
1 8 3 2 1 2 2 4 2 5 1 3 3 6 6 7 6 8 5 7 8
2
In the example, the crime scenes are $$$\{5,7,8\}$$$ and $$$k=2$$$. One optimal strategy is: