摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=1016 题意:输入一个数,给出符合要求的素数环。 经典的dfs遍历。 阅读全文
摘要:
https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1351 题意:给出bfs和dfs序列,输出每个结点的子节点。 遍历dfs序列,如果当前访问元素为v,它的前 阅读全文