#include using namespace std; using ll=long long; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); ll n;cin>>n; vectora(n),b(n); for(auto&o:a)cin>>o; for(auto&o:b)cin>>o; ll ans=1LL<<60; priority_queue,vector>,greater<>>que; for(int i=0;i