摘要:
"题目链接 $Click$ $Here$" 非常有趣的一个题目。 关键结论:所有的单位费用应该被分配在流量最大的边上。 即:在保证最大流的前提下,使最大流量最小。这里我们采用二分的方法,每次判断让所有边的流量$ using namespace std; const int N = 400010; c 阅读全文
摘要:
和$FFT$相对应的,把单位根换成了原根,把共轭复数换成了原根的逆元,最后输出的时候记得乘以原$N$的逆元即可. cpp include using namespace std; define LL long long const int MAXN = 3 1e6 + 10, P = 9982443 阅读全文
摘要:
"题目链接$Click$ $Here$" $ex\_lucas$实在是不能学的东西。。。简单学了一下$Lucas$然后打算就这样鸽着了$QwQ$(~~奶一口不可能考~~) 没什么复杂的,证明的话请看 "这个博客" ,我个人也仅仅是简单感性理解了一下。 cpp int lucas (int x, in 阅读全文
摘要:
"题目链接 $Click$ $Here$" 真心没啥东西,只要能$Get$到在数字输入的时候按位取模,以及除数也可以直接取模就可以了。(把每个数看做乘法原理和加法原理构造起来的即可。) cpp include using namespace std; const int Mod = 19260817 阅读全文
摘要:
"题目链接 $Click$ $Here$" 中国剩余定理的板子。小心取模。 cpp include using namespace std; const int N = 11; define int long long int n, M = 1, a[N], b[N], t[N], ans; int 阅读全文
摘要:
"题目链接 $Click$ $Here$" 水题。记得记一下边的流量有没有跑完。 cpp include using namespace std; const int N = 100010; const int M = 800010; const int INF = 0x3f3f3f3f; int 阅读全文