2017年9月3日

POJ1077 Eight —— 经典的搜索问题

摘要: 题目链接:http://poj.org/problem?id=1077 Eight Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 33267 Accepted: 14404 Special Judge Description T 阅读全文

posted @ 2017-09-03 21:14 h_z_cong 阅读(361) 评论(0) 推荐(0) 编辑

HDU2181 哈密顿绕行世界问题 —— DFS

摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2181 哈密顿绕行世界问题 Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total S 阅读全文

posted @ 2017-09-03 21:09 h_z_cong 阅读(142) 评论(0) 推荐(0) 编辑

UVA11624 Fire! —— BFS

摘要: 题目链接:https://vjudge.net/problem/UVA-11624 题解: 坑点:“portions of the maze havecaught on fire”, 表明了起火点不唯一。 火和人使用同一种结构体,用id来区别类型。BFS求解:首先将所有火苗入队,然后人再入队(肯定要 阅读全文

posted @ 2017-09-03 21:05 h_z_cong 阅读(185) 评论(0) 推荐(0) 编辑

导航