摘要: 输出最小的注意一下,代码如下,水题不解释#include #include#include#include#include#include #define MM(a) memset(a,0,sizeof(a));using namespace std;const in... 阅读全文
posted @ 2018-06-09 20:36 琳小羽 阅读(111) 评论(0) 推荐(0)
摘要: 实现:1,没有前驱的结点输出 2 从图中删除该顶点和所有出边 重复1,2直至所有顶点都输出。或不存在无前驱的顶点,后者代表有向图是有环的。(有向图判环)#include#include#include#include#includeusing namespace ... 阅读全文
posted @ 2018-06-09 17:06 琳小羽 阅读(196) 评论(0) 推荐(0)