2019年3月1日

CodeForces - 1105D 多源搜索

摘要: #include using namespace std; typedef long long ll; struct node{ int x,y; ll setp; }; queue Q,border[10]; const int maxn=1005; char a[maxn][maxn]; int vis[maxn][maxn]; int n,m,p; ll ans[10],s... 阅读全文

posted @ 2019-03-01 16:27 欣崽 阅读(574) 评论(0) 推荐(0)

最大独立集模板

摘要: #include #include #include using namespace std; const int maxn=55; int n; bool g[maxn][maxn]; bool found; int len[maxn],list[maxn][maxn],ans,mc[maxn]; void dfs(int size) { if(len[size]==0... 阅读全文

posted @ 2019-03-01 16:09 欣崽 阅读(357) 评论(0) 推荐(0)

导航