【SPOJ2916 GSS5】Can you answer these queries V——杨子曰题目
【SPOJGSS5】CanyouanswerthesequeriesV——杨子曰题目题目描述YouaregivenasequenceA[1],A[2],…,A[N].(|A[i]|#defineinf2000000000usingnamespacestd;constintmaxn=10005;inta[maxn],sum[maxn*4],ms[maxn*4],ls[maxn*4],rs[maxn*