Problem: Monocarp is playing a computer game (yet again). Guess what is he doing? That's right, killing monsters.
There are monsters in a row, numbered from to . The -th monster has two parameters: attack value equal to and defense value equal to . In order to kill these monsters, Monocarp put a berserk spell on them, so they're attacking each other instead of Monocarp's character.
The fight consists of rounds. Every round, the following happens:
- first, every alive monster deals damage to the closest alive monster to the left (if it exists) and the closest alive monster to the right (if it exists);
- then, every alive monster which received more than damage during this round dies. I. e. the -th monster dies if and only if its defense value is strictly less than the total damage it received this round.
For each round, calculate the number of monsters that will die during that round.
Input Format: The first line contains one integer () — the number of test cases.
Each test case consists of three lines:
- the first line contains one integer ();
- the second line contains integers ();
- the third line contains integers ().
Additional constraint on the input: the sum of over all test cases does not exceed .
Output Format: For each test case, print integers. The -th integer should be equal to the number of monsters that die during the -th round.
Note: Explanation for the first test case of the example:
During the first round, the following happens:
- the monster deals damage to the monster ;
- the monster deals damage to the monster and the monster ;
- the monster deals damage to the monster and the monster ;
- the monster deals damage to the monster and the monster ;
- the monster deals damage to the monster ;
- the monster does not die, since it received damage and its defense is ;
- the monster dies, since it received damage and its defense is ;
- the monster dies, since it received damage and its defense is ;
- the monster does not die, since it received damage and its defense is ;
- the monster dies, since it received damage and its defense is .
After the first round, the monsters and stay alive.
During the second round, the following happens:
- the monster deals damage to the monster ;
- the monster deals damage to the monster ;
- the monster dies, since it received damage and its defense is ;
- the monster does not die, since it received damage and its defense is .
During the next three rounds, only the -th monster is alive, so nothing happens.