2012年3月29日

poj 1011 Sticks 搜索

摘要: 发一道老早写的题。 1 #include<iostream> 2 #include <algorithm> 3 using namespace std; 4 int a[65]; 5 bool use[65]; 6 int n,m,len; 7 int cmp(int a, int b) 8 { 9 return a > b;10 }11 bool dfs(int i,int sum,int j)12 {13 int k,temp,x;14 if(j==m) return 1;15 else if(sum==len) return dfs(1,0,j+1)... 阅读全文

posted @ 2012-03-29 20:07 myoi 阅读(200) 评论(0) 推荐(0) 编辑

导航