Watchcow(poj 2230)

Watchcowios 求无向图每条边刚好通过两次,在回到原点,输出通过的顶点。容易转化为有向图欧拉回路每条边通过一次。 app 代码:spa #include <stdio.h> #include <stack> #include <vector> #include <iostream> using namespace std; #define M 100005 struct edge{
相关文章
相关标签/搜索