摘要: 有n个数和5种操作 add a b c:把区间[a,b]内的所有数都增加c set a b c:把区间[a,b]内的所有数都设为c sum a b:查询区间[a,b]的区间和 max a b:查询区间[a,b]的最大值 min a b:查询区间[a,b]的最小值 有n个数和5种操作 add a b 阅读全文
posted @ 2018-08-18 20:07 StarHai 阅读(258) 评论(0) 推荐(0) 编辑
摘要: Now you get a number N, and a M-integers set, you should find out how many integers which are small than N, that they can divided exactly by any integ 阅读全文
posted @ 2018-08-18 20:01 StarHai 阅读(282) 评论(0) 推荐(0) 编辑
摘要: Every year there is the same problem at Halloween: Each neighbour is only willing to give a certain total number of sweets on that day, no matter how 阅读全文
posted @ 2018-08-18 19:58 StarHai 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 小L正在组织acm暑假集训,但众所周知,暑假集训的萌新中有OI神犇,也有暑假才开始学算法的萌新,如果统一集训的难度,无法很好地让萌新们得到训练,所以小L想了一个办法,根据每次测试的情况,改变萌新们的集训难度。现在将萌新们编号为1到n,最初萌新们的集训难度为v0,测试后有两种操作,第一种是某一区间的萌 阅读全文
posted @ 2018-08-18 19:55 StarHai 阅读(212) 评论(0) 推荐(0) 编辑
摘要: Description Wells最近经常做一些有皮神出现的梦。 在这一次梦中Wells把皮神(Pikachu)弄丢了,Wells在一个正 N 边形区域的中心开始自闭,Wells想找回皮神,同时皮神也在尝试找回Wells。 皮神为了确保不会找不到Wells,皮神在正 NN 边形最外围的每个顶点上都放 阅读全文
posted @ 2018-08-18 19:53 StarHai 阅读(248) 评论(0) 推荐(0) 编辑