摘要: 题目描述 给定一个长度为N的数列A,以及M条指令 (N≤5*10^5, M<=10^5),每条指令可能是以下两种之一:“C l r d”,表示把 A[l],A[l+1],…,A[r] 都加上 d。“Q l r”,表示询问 A[l],A[l+1],…,A[r] 的最大公约数(GCD)。 输入 第一行两 阅读全文
posted @ 2018-10-01 11:13 特特w 阅读(800) 评论(0) 推荐(2) 编辑
摘要: 题目描述 She says that any Pavarotti among the nightingales will serenade his mate while she sits on her eggs. She says that any excited database can answ 阅读全文
posted @ 2018-10-01 10:20 特特w 阅读(175) 评论(0) 推荐(0) 编辑