摘要: 我的wa代码 wa到吐血,找不到错。View Code 1 #include<iostream> 2 #include<algorithm> 3 #include<cstdio> 4 using namespace std; 5 __int64 num[1000000],sum,cnt; 6 const __int64 maxn=1000000000100; 7 void dfs(__int64 u,__int64 d) 8 { 9 if(d>12) return;10 dfs(num[sum++]=u*10+4,d+1);11 dfs(num[sum 阅读全文
posted @ 2012-03-19 22:58 静静的等待_93 阅读(277) 评论(0) 推荐(0) 编辑
摘要: dpView Code 1 #include<iostream> 2 #include<cstdio> 3 #include<cstring> 4 using namespace std; 5 const int maxn=10010; 6 int dp[11][10010]; 7 int belong[10010]; 8 int w[10010],v[10010]; 9 int flag[20];10 int main()11 {12 int n,m,k,i,j,x;13 while(scanf("%d%d%d",&n,& 阅读全文
posted @ 2012-03-19 08:22 静静的等待_93 阅读(301) 评论(0) 推荐(0) 编辑