#include using namespace std; #define rep(i,n) for(int i=0;i>n; vectora(n),b(n); rep(i,n) cin>>a[i]; rep(i,n) cin>>b[i]; mapmp; int kaisu=1; int temp=n; while(temp){ kaisu*=temp; temp--; } //cout<b[i]){ ans+=(a[i]-b[i]); } } mp[ans]++; next_permutation(a.begin(), a.end()); } int maxe=0; for(auto e:mp){ //cout<maxe) maxe=e.first; } cout<