摘要:
视频链接:https://www.bilibili.com/video/BV1xd4y1175R/ Luogu P3846 [TJOI2007] 可爱的质数/【模板】BSGS #include <iostream> #include <cstring> #include <algorithm> #i 阅读全文
摘要:
视频链接:https://www.bilibili.com/video/BV1Ut4y1F7HG/ Luogu P4777 【模板】扩展中国剩余定理(EXCRT) #include <iostream> #include <cstring> #include <algorithm> using na 阅读全文
摘要:
视频链接:https://www.bilibili.com/video/BV1AN4y1N7Su/ Luogu P1495 【模板】中国剩余定理(CRT)/ 曹冲养猪 #include <iostream> #include <cstring> #include <algorithm> using 阅读全文
摘要:
视频链接:https://www.bilibili.com/video/BV1mg411a7o2/ #include <iostream> #include <cstring> #include <algorithm> using namespace std; int exgcd(int a,int 阅读全文
摘要:
视频链接:https://www.bilibili.com/video/BV1rD4y1C7qg/ #include <iostream> #include <cstring> #include <algorithm> using namespace std; int exgcd(int a,int 阅读全文
摘要:
视频链接:https://www.bilibili.com/video/BV1bW4y1e7n9/ Luogu P4549 【模板】裴蜀定理 #include<iostream> #include<cmath> using namespace std; int n,a,s; int gcd(int 阅读全文
摘要:
视频链接:https://www.bilibili.com/video/BV1GG411n7tW/ HDU 2973 YAPTCHA #include <iostream> using namespace std; typedef long long LL; const int N = 100000 阅读全文
摘要:
视频链接:https://www.bilibili.com/video/BV1iN4y1K7ZN/ Luogu P5091 【模板】扩展欧拉定理 #include <iostream> using namespace std; typedef long long LL; int a,b,m,phi, 阅读全文
摘要:
视频链接:https://www.bilibili.com/video/BV1RD4y1i7PK/ #include<iostream> using namespace std; typedef long long LL; int a, p; int quickpow(LL a, int b, in 阅读全文
摘要:
视频链接:https://www.bilibili.com/video/BV1Te4y1C7DP/ #include <iostream> using namespace std; const int N = 1000010; int p[N], vis[N], cnt; int mu[N]; vo 阅读全文