博客园 首页 私信博主 显示目录 隐藏目录 管理 动画
摘要: "题目链接" int内的数(也不非得是int)最多开方4.5次就变成1了,所以还不是1就暴力,是1就直接跳过。 cpp include include include include define gc() getchar() typedef long long LL; const int N=5e 阅读全文
posted @ 2018-02-19 22:01 SovietPower 阅读(182) 评论(0) 推荐(0) 编辑
摘要: "题目链接" "高斯消元详解" 阅读全文
posted @ 2018-02-19 21:26 SovietPower 阅读(234) 评论(0) 推荐(0) 编辑
摘要: "题目链接" 扩展中国剩余定理: "1(直观的)" 、 "2(详细证明)" 。 [Upd:] https://www.luogu.org/problemnew/solution/P4774 cpp include include define gc() getchar() typedef long 阅读全文
posted @ 2018-02-19 17:31 SovietPower 阅读(281) 评论(0) 推荐(0) 编辑
摘要: "题目链接" "扩展Lucas" cpp //求C_n^k%m include typedef long long LL; LL FP(LL x,LL k,LL p) { LL t=1ll; for(; k; k =1,x=x x%p) if(k&1) t=t x%p; return t; } vo 阅读全文
posted @ 2018-02-19 16:52 SovietPower 阅读(207) 评论(2) 推荐(1) 编辑
摘要: RT 阅读全文
posted @ 2018-02-19 16:45 SovietPower 阅读(294) 评论(0) 推荐(0) 编辑