You are given an array $$$a$$$ consisting of $$$n$$$ integers.
While the array is not empty, an operation is performed consisting of two steps:
Your task is to calculate the number operations that will be performed before the array becomes empty.
The first line contains one integer $$$t$$$ ($$$1 \le t \le 10^4$$$) — the number of test cases.
Each test case consists of two lines:
Additional constraint on the input: the sum of $$$n$$$ over all test cases does not exceed $$$2 \cdot 10^5$$$.
For each test case, print one integer — the number of operations that will be performed.
452 1 2 3 161 2 3 4 5 633 2 141 3 3 1
3613
In the first example, the array is $$$[2, 1, 2, 3, 1]$$$. The following operations are performed on it:
| Name |
|---|


