2012年3月30日

TLE: poj 1011 Sticks

摘要: Ozy的方法(dfs): 1 # include <stdio.h> 2 # include <string.h> 3 4 int f[51]; 5 int ok; 6 int length; 7 8 void dfs(int cnt, int len, int cur) 9 {10 int j;11 12 if (cnt == 0) {ok = 1; return;}13 14 --f[cur];15 16 len -= cur;17 if (len != 0)18 {19 j = len<cur ?... 阅读全文

posted @ 2012-03-30 12:56 getgoing 阅读(171) 评论(0) 推荐(0) 编辑

导航