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$, denoting the number of mountains ($1 \le n \le 10^5$).

The second line contains $n$ integers $h_1, h_2, \ldots, h_n$, denoting the current heights of the mountains ($1 \le h_i \le 10^6$).

The third line contains $n$ integers $p_1, p_2, \ldots, p_n$, denoting the heights of the mountains in the same order at some point in the past ($1 \le p_i \le 10^6$).

It is guaranteed that the sum of $n$ over all test cases does not exceed $10^5$.