Source Code
#include<iostream>
using namespace std;
int main()
{
	long long t;
	long long n;
	long long x[200002], tmp, y;
	cin >> t;
	while (t--)
	{
		tmp = 0;
		cin >> n;
		for (long long i = 0; i < n; i++)
		{
			cin >> x[i];
		}
		for (long long i = 0; i < n; i++)
		{
			cin >> y;
			if (abs(y - x[i]) > tmp)
				tmp = abs(y - x[i]);
		}
		cout << tmp << endl;
	}
	return 0;
}
Copy
Garden Walls master2000
GNU G++17
130 ms
2.0 MB
Wrong Answer