#include using namespace std; typedef pair P; signed main(){ int n;cin>>n; vector a(n),b(n); for(int i=0;i>a[i]; for(int i=0;i>b[i]; int ans=1e9; priority_queue,greater

> que; for(int start=0;starttmp)ans=tmp; } cout<