摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1016 题意:输入一个数,给出符合要求的素数环。 经典的dfs遍历。 阅读全文
posted @ 2016-12-30 16:19 Kayden_Cheung 阅读(163) 评论(0) 推荐(0) 编辑
摘要: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1351 题意:给出bfs和dfs序列,输出每个结点的子节点。 遍历dfs序列,如果当前访问元素为v,它的前 阅读全文
posted @ 2016-12-30 14:10 Kayden_Cheung 阅读(198) 评论(0) 推荐(0) 编辑
//目录