You are given an integer array of $$$n$$$ elements $$$a_1, a_2, \dots, a_n$$$. You can perform two types of operations on it:
You can perform any operations any number of times and in any order. What is the minimum number of operations you need to make the array empty?
The first line contains a single integer $$$t$$$ ($$$1 \le t \le 5000$$$) — the number of test cases.
The first line of each test case contains a single integer $$$n$$$ ($$$1 \le n \le 2 \cdot 10^5$$$) — the size of the array $$$a$$$.
The second line of each test case contains $$$n$$$ integers $$$a_1, a_2, \dots, a_n$$$ ($$$1 \le a_i \le n$$$) — the array itself.
Additional constraint on the input: the sum of $$$n$$$ over all test cases doesn't exceed $$$2 \cdot 10^5$$$.
For each test case, print one integer — the minimum number of operations to make the array $$$a$$$ empty using the operations above.
51122 265 2 5 2 2 465 5 5 5 1 154 1 1 1 4
11434
In the first test case, you can perform only the first operation once.
In the second test case, since the first two elements are equal, you can perform the second operation once and delete both elements.
In the third test case, it's optimal to perform the first operation and delete $$$a_2 = 2$$$. After that, you'll get the array $$$[5, 5, 2, 2, 4]$$$, and you can perform the second operation two times. In the result, you'll get the array $$$[4]$$$, so you need one more operation of the first type.
| Name |
|---|


