
模板
模板
Authur_gyc
这个作者很懒,什么都没留下…
展开
-
数论 二次剩余定理+模板
代码参考来源https://blog.youkuaiyun.com/qq_33229466/article/details/79125057转载 2019-08-24 22:24:21 · 739 阅读 · 0 评论 -
数论 欧拉函数+模板
概念性质应用理解代码原创 2019-08-25 11:33:20 · 242 阅读 · 0 评论 -
模板 匈牙利算法(邻接表、dfs)
匈牙利算法(邻接表、dfs版本)#include <cstdio>#include <cstdlib>#include <cstring>using namespace std;typedef long long ll;const int MAXN = 1e3 + 5;int V; //顶点数目vecto...原创 2019-08-15 22:56:12 · 256 阅读 · 0 评论 -
龟速乘模板
代码long long slow_mul(long long x, long long y, long long mod) { long long ans = 0; while(y) { if(y & 1) ans = ans + x % mod; x = (x + x) % mod; y >>= 1; } return ans;}long...原创 2019-07-30 16:24:40 · 218 阅读 · 0 评论