首页
Python
Java
前端
数据库
Linux
Chatgpt专题
开发者工具箱
uva10410专题
用bfs和dfs建树--uva10410 Tree reconstruction
将bfs作为点的顺序。 #include <iostream> #include <vector> #include <cstdio> using namespace std; const int maxn = 1000 + 5; int pos[maxn],dfs[maxn]; vector<int> mp[maxn];
阅读更多...