#include #include using namespace std; using namespace atcoder; using ll=long long; int main() { int n;ll h; cin>>n>>h; vector a(n),b(n); for(int i=0;i>a[i]; for(int i=0;i>b[i]; ll l=0,r=0; vector sumb(n+1); for(int i=0;i