#include<iostream> #include<cstdio> #include<algorithm> #include<cstring> #include<cmath> #define debug cout<<"ok"<<endl; using namespace std; int a[100000]; int s[100000]; int pmin[100000]; int main(){ int i,j,n,m,ans2=-1<<30,ans=-1<&...