摘要: 实际上,对于位数相同的连续段,可以用矩阵快速幂求出最后的ans,那么题目中一共只有18个连续段。 分段矩阵快速幂即可。 #include<cstdio> #include<iostream> #include<cstring> #include<cstdlib> #include<algorithm 阅读全文
posted @ 2017-04-20 15:48 free-loop 阅读(186) 评论(0) 推荐(0) 编辑