随笔分类 - *图论---拓扑排序
摘要:拓扑排序·一 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int maxv = 100010; 4 const int maxe = 500010; 5 struct Edge{ 6 int v, nxt; 7 Edge(){}
阅读全文
摘要:Guess UVALive - 4255 题意: 拓扑排序 1 #include <bits/stdc++.h> 2 using namespace std; 3 4 const int maxn=12; 5 int p[maxn][maxn],b[maxn]; 6 int in[maxn]; 7
阅读全文
摘要:题目连接:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=4364 注意条件是可以旋转或者翻转,, 每条边看作点,两个正方形相连的边看作连接两点的有向边 拓
阅读全文
摘要:题目连接:UVA - 10305 拓扑排序 lrj167 1 #include<cstdio> 2 #include<cstring> 3 #include<set> 4 #include<iostream> 5 #include<cctype> 6 #include<string> 7 #incl
阅读全文

浙公网安备 33010602011771号