#include using namespace std; #define int long long #define rep(i,n) for(int i=0;i=0;i--) #define all(v) v.begin(),v.end() #define P pair #define len(s) (int)s.size() template inline bool chmin(T &a, T b){ if(a>b){a=b;return true;} return false; } template inline bool chmax(T &a, T b){ if(a>N; int sum1=0,sum2=0; rep(i,N){ cin>>A[i];sum1+=A[i]; } int mx=0; rep(i,N){ cin>>B[i];sum2+=B[i]; chmax(mx,abs(B[i]-A[i])); } if(sum1