摘要: http://acm.hit.edu.cn/hoj/problem/view?id=1956深搜+剪枝,与hoj 1049相似,此题固定了 筷子的长度和筷子的条数为4/*This Code is Submitted by billforum for Problem 1956 at 2012-01-31 17:30:00*/#include <iostream>#include <algorithm>using namespace std;struct point{ int num; int next;};point data[100];bool visit[100].. 阅读全文
posted @ 2012-01-31 17:33 wuzhibin 阅读(141) 评论(0) 推荐(0)
摘要: http://acm.hit.edu.cn/hoj/problem/view?id=1049经典的深搜+剪枝题,/*This Code is Submitted by billforum for Problem 1049 at 2012-01-31 17:05:44*/#include <iostream>#include <algorithm>using namespace std;struct point{ int num; int next;};point data[100];bool visit[100];int total,len,n;bool cmp(p.. 阅读全文
posted @ 2012-01-31 17:13 wuzhibin 阅读(225) 评论(0) 推荐(0)