It is 5 AM, and $$$WisdomCasual$$$ is exhausted. He has been setting problems all night, and all he wants to do right now is get into bed and sleep. However, the problemset is still missing a problem.
In a desperate attempt to finish the problem and finally get some rest, he quickly writes down two arrays, $$$a$$$ and $$$b$$$, both of size $$$n$$$, and writes a random condition on a napkin.
He defines a pair of indices $$$(i, j)$$$ as synchronized if it satisfies the following conditions:
Since $$$WisdomCasual$$$ is already half-asleep, he leaves the task of actually counting the pairs to you. Help him find the total number of synchronized pairs so he can finally close his eyes and go to sleep...
Each test contains multiple test cases. The first line contains the number of test cases $$$t$$$ ($$$1 \le t \le 10^4$$$). The description of the test cases follows.
The first line of each test case contains a single integer $$$n$$$ ($$$1 \le n \le 2 \cdot 10^5$$$) — the length of the arrays.
The second line contains $$$n$$$ integers $$$a_1, a_2, \dots, a_n$$$ ($$$1 \le a_i \le 10^9$$$) — the elements of array $$$a$$$.
The third line contains $$$n$$$ integers $$$b_1, b_2, \dots, b_n$$$ ($$$1 \le b_i \le 10^9$$$) — the elements of array $$$b$$$.
It is guaranteed that the sum of $$$n$$$ over all test cases does not exceed $$$2 \cdot 10^5$$$.
For each test case, output a single integer — the total number of synchronized pairs.
341 3 5 22 4 2 2310 10 105 5 551 2 3 4 51 2 3 4 5
2310