摘要: 例题POJ-2406 解决思路链接 Hash解决代码 #include <cstdio> #include <iostream> #include <cstring> #include <algorithm> using namespace std; typedef long long ll; ch 阅读全文
posted @ 2020-07-31 20:46 SavenNeer 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 相关的数学原理直接链接 直接上一个模板代码 ll cal(int x,ll y,int mod) //计算和返回 y的x次方 % mod 的结果值 { ll re=1; //结果值初始化 while(x) //分析次幂 x 的每一个二进制位 { if(x&1) re=(re*y)%mod; //若当 阅读全文
posted @ 2020-07-31 20:14 SavenNeer 阅读(101) 评论(0) 推荐(0) 编辑