上一页 1 ··· 55 56 57 58 59
摘要: #include#include#includeint cmp(const void *a,const void *b) { return *(int *)a-*(int *)b;}int seach(int n,int m) { int sum=0,n_x,m_x; while(... 阅读全文
posted @ 2013-07-31 19:58 HYDhyd 阅读(166) 评论(0) 推荐(0) 编辑
摘要: #includeint main() {int t,n,a[1001];scanf("%d",&t);while(t--) {scanf("%d",&n);int i=0;while(n) {a[i++]=n%2;n/=2;}int j;int flag=0;for(j=0;j<i;j++)if(a... 阅读全文
posted @ 2013-07-31 19:21 HYDhyd 阅读(104) 评论(0) 推荐(0) 编辑
摘要: #include#includeint map[151000][2];int max(int a,int b) {return a>b?a:b;}int main() {int n,d;while(scanf("%d",&n)!=EOF) {memset(map,0,sizeof(map));int... 阅读全文
posted @ 2013-07-31 17:39 HYDhyd 阅读(140) 评论(0) 推荐(0) 编辑
摘要: #include#includeint main() {double a;double b;int c;char ch;double num[300];while(scanf("%d",&c)) { if(getchar()=='\n'&&c==0)//注意必须这样写 break;int i=0;n... 阅读全文
posted @ 2013-07-31 17:10 HYDhyd 阅读(117) 评论(0) 推荐(0) 编辑
摘要: #include#includechar s[200][200]; int a[200][200]; int n,m; int dir[4][2]={-1,0,1,0,0,1,0,-1}; void dfs(int x,inty) {if(s[x][y]=='.')return;for(intk=0... 阅读全文
posted @ 2013-07-31 15:55 HYDhyd 阅读(190) 评论(0) 推荐(0) 编辑
摘要: #include#includechar a[300],b[300];int a1[300],b1[300];int main() {int i,j,k,c[300],suma,sumb,lena,lenb;while(scanf("%s%s",a,b)!=EOF) { lena=strlen(a)... 阅读全文
posted @ 2013-07-31 15:54 HYDhyd 阅读(175) 评论(0) 推荐(0) 编辑
上一页 1 ··· 55 56 57 58 59