1357专题

uva 1357 - Cells(dfs)

题目链接:uva 1357 - Cells 用栈模拟递归,根据每个节点被访问的顺序判断。 #include <cstdio>#include <cstring>#include <vector>#include <map>#include <stack>#include <algorithm>using namespace std;const int maxn =