This is how I took input for this problem:[bbone=cpp,120]#include
using namespace std;
int main()
{
int t,n,x;
scanf("%d", &t);
while(t--)
{
scanf("%d", &n);
for(int i = 0; i < n; i++)
scanf("%d", &x);
for(int i = 0; i < n; i++)
scanf("%d", &x);
}
}
[/bbone]