#include<iostream> #include<cstring> #include<queue> using namespace std; const int N=1e6; int h[N],e[N],ne[N],w[N]; int n,m; int idx; bool st[N]; int ...
分类:
其他好文 时间:
2020-01-29 12:27:30
阅读次数:
53
#include<iostream> #include<queue> #include<cstring> using namespace std; const int N=1e6+10,INF=0x3f3f3f3f; int h[N],ne[N],e[N],w[N],idx; int dist[N] ...
分类:
其他好文 时间:
2020-01-29 12:26:00
阅读次数:
52
"Link" 给每行和每列建一个点,在一个格子里面加固就在这个格子对应的行和列连边,那么这个网格图是刚体当且仅当所有点连通。 因此我们将题目转化为了连通二分图计数。 设$f_{i,j}$ 表示$|X|=i,|Y|=j$的连通二分图个数,考虑补集容斥,然后枚举$1$号点所在连通块的左右部分的点数 $f ...
分类:
其他好文 时间:
2020-01-29 12:25:40
阅读次数:
80
#include<iostream> #include<queue> #include<cstdio> #include<cstring> using namespace std; double d[35]; int h[1010],cnt,n,pre[35]; bool vis[35]; stru ...
分类:
其他好文 时间:
2020-01-29 12:24:11
阅读次数:
42
#include<math.h> #include<iomanip> //setprecision头文件 #include<stdio.h> #include<iostream> #include<algorithm> #include<string.h> #include<queue> using ...
分类:
其他好文 时间:
2020-01-29 12:15:57
阅读次数:
51
#include<iostream> #include<algorithm> #include<queue> #include<map> #include<cstring> #include<cstring> #include<cstdio> #include<math.h> using names ...
分类:
其他好文 时间:
2020-01-29 12:15:38
阅读次数:
71
#include<iostream> #include<cstring> #include<algorithm> using namespace std; const int N=0x3f3f3f3f; int p[50]; struct edge{ int a,b,w; }e[100]; bool ...
分类:
其他好文 时间:
2020-01-29 12:11:08
阅读次数:
72
#include<iostream> #include<queue> #include<cstring> using namespace std; const int N=200000+10,INF=0x3f3f3f3f; int h[N],e[N],ne[N],w[N],idx; int n,m, ...
分类:
其他好文 时间:
2020-01-29 12:10:32
阅读次数:
56
初始化空初始化创建一把锁两把锁大专栏 Core Java之7种单例模式"headerlink" title="静态内部类">静态内部类静态加载枚举 ...
分类:
编程语言 时间:
2020-01-29 10:45:32
阅读次数:
71
Cornfields Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 9378 Accepted: 4420 Description FJ has decided to grow his own corn hybrid in or ...
分类:
其他好文 时间:
2020-01-29 10:24:05
阅读次数:
95