![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
树
Sand_IN_MysterieS
这个作者很懒,什么都没留下…
展开
-
矩阵树+最小生成树
矩阵树+最小生成树最下生成树计数https://darkbzoj.tk/problem/1016板子题,使用板子#include<bits/stdc++.h>//#include<gl/glut.h>//#include<ctime>#define ll long long#define mes(a,b) memset(a,b,sizeof(a))#define ctn continue#define ull unsigned long long//原创 2021-11-16 18:58:01 · 262 阅读 · 0 评论 -
矩阵树+生成树计数+高精度
矩阵树+生成树计数+高精度轮状病毒https://darkbzoj.tk/problem/1002Python特性非常奇怪但是因为,高精度还是用Python写了maxn = 102D = [[0 for i in range(maxn)] for j in range(maxn)]A = [[0 for i in range(maxn)] for j in range(maxn)]mat = [[0 for i in range(maxn)] for j in range(maxn)]原创 2021-11-16 17:52:00 · 482 阅读 · 0 评论 -
矩阵树+生成树计数
矩阵树+生成树计数小Z的房间注意使用夕哥哥板子的时候点id从0开始计数或者改板子w#include<bits/stdc++.h>//#include<gl/glut.h>//#include<ctime>#define ll long long#define mes(a,b) memset(a,b,sizeof(a))#define ctn continue#define ull unsigned long long//#pragma warning原创 2021-11-16 15:18:38 · 213 阅读 · 0 评论 -
拓扑排序+思维
CF 748 div3 E[https://codeforc.es/problemset/problem/1593/E]拓扑思想一开始想复杂了还有,arr->clear(); 并不好用#include<bits/stdc++.h>//#include<gl/glut.h>//#include<ctime>#define ll long long#define mes(a,b) memset(a,b,sizeof(a))#define ctn co原创 2021-11-15 20:33:18 · 206 阅读 · 0 评论