上一页 1 ··· 59 60 61 62 63 64 65 66 67 ··· 99 下一页

2011年5月11日

tempter of the bone

摘要: #include<stdio.h>#include<stdlib.h>#include<string.h>#include<iostream>using namespace std;int N,M,T,flag,a,b,c,d;int xx[4]={0,0,1,-1};int yy[4]={1,-1,0,0};char map[30][30];int fun(int x,int y){ if(x<... 阅读全文

posted @ 2011-05-11 10:07 more think, more gains 阅读(148) 评论(0) 推荐(0)

Oil Deposits

摘要: #include<stdio.h>#include<string.h>#include<stdlib.h>#include<iostream>using namespace std;char map[21][21];int M,N,res;int xx[]={0,0,1,-1,-1,1,-1,1};int yy[]={1,-1,0,0,1,-1,-1,1};int fun(int x,int y)... 阅读全文

posted @ 2011-05-11 03:49 more think, more gains 阅读(120) 评论(0) 推荐(0)

Red and Black

摘要: #include<stdio.h>#include<string.h>#include<stdlib.h>char map[21][21];int M,N,res;int xx[4]={0,0,1,-1};int yy[4]={1,-1,0,0};int fun(int x,int y){ if(x<0||y<0||x>=N||y>=M) return 0; return 1;}void DFS(... 阅读全文

posted @ 2011-05-11 03:19 more think, more gains 阅读(141) 评论(0) 推荐(0)

counting sheep

摘要: #include<stdio.h>#include<string.h>#include<stdlib.h>int T,M,N;char map[110][110];int xx[4]={1,0,0,-1};int yy[4]={0,1,-1,0};int fun(int x,int y){ if(x<0||x>=N||y<0||y>=M) return 0; return 1;} void DFS... 阅读全文

posted @ 2011-05-11 03:06 more think, more gains 阅读(163) 评论(0) 推荐(0)

sum it up

摘要: #include<stdio.h>#include<string.h>#include<stdlib.h>int N,M,dp[50],mark[50],flag;void DFS(int x,int sum) //sum为和,x为当前数组标号{ int i,k,j,flag1=0; if(sum==N) { for(i=0;i<M;i++) { if(mark[i]==1) { if(!flag1) printf("%d",dp[i]),flag1=1; else printf("+%d",dp[i]); } 阅读全文

posted @ 2011-05-11 00:56 more think, more gains 阅读(186) 评论(0) 推荐(0)

上一页 1 ··· 59 60 61 62 63 64 65 66 67 ··· 99 下一页

导航