ACM_搜索
乐于消遣
这个作者很懒,什么都没留下…
展开
-
10400 - Game Show Math
用状态数组来剪枝的一种方法# include# include # include int dfs(long ans,int cur); int range(long a); long number[105],que; int n,vis[64010][110]; char record[105]; int main() { int test; scanf("%d",&test); re原创 2014-03-14 19:47:54 · 1076 阅读 · 0 评论 -
307 - Sticks
# include # include # include using namespace std; int judge(int length); int dfs(int cur,int sum,int length,int deep); int queue(int deep,int length); int n,stick[105],vis[105],be_used[105]; int ma原创 2014-03-14 19:51:52 · 662 阅读 · 0 评论