随笔分类 - 数论-多项式求逆
摘要:Description 刚刚解决完电力网络的问题, 阿狸又被领导的任务给难住了.刚才说过, 阿狸的国家有n 个城市, 现在国家需要在某些城市对之间建立一些贸易路线, 使得整个国家的任意两个城市都直接或间接的连通.为了省钱, 每两个城市之间最多只能有一条直接的贸易路径. 对于两个建立路线的方案, 如果
阅读全文
摘要:#include <iostream> #include <cstdio> #include <cmath> #include <memory.h> using namespace std; typedef long long ll; const int N=524288; const ll P=9
阅读全文