摘要: 传送门:http://www.lydsy.com/JudgeOnline/problem.php?id=4542 思路:当P!=2或5时,显然10^x%P!=0 把后缀模P的值搞出来 于是问题就便成询问区间内%P为x的分别有多少个 这个再套一个莫队就可以了。 #include#include... 阅读全文
posted @ 2016-04-19 12:05 orzpps 阅读(168) 评论(0) 推荐(0) 编辑