【ZOJ3940 The 13th Zhejiang Provincial Collegiate Programming ContestE】【脑洞 STL-MAP 复杂度分析 区间运算思想 双指针】M
ModuloQueryTimeLimit:2Seconds MemoryLimit:65536KBOneday,Petercameacrossafunctionwhichlookslike:F(1,X)=XmodA1.F(i,X)=F(i-1,X)modAi,2≤i≤N.WhereAisanintegerarrayoflengthN,Xisanon-negativeintegernogrea