摘要: #include<stdio.h>int b[100000]={0},a[100000],m,w;bool p(int i){ if(b[i]==1) { return false; } return true;}int s(int n){ for(int i=1;i<=m;i++) { a[n]= 阅读全文
posted @ 2016-08-28 17:00 刘cy 阅读(115) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>int a[100];int main(){ int i,j,n,t=0,f; freopen("random.in","r",stdin); freopen("random.out","w",stdout); scanf("%d",&n); for(i=1;i<= 阅读全文
posted @ 2016-08-28 15:35 刘cy 阅读(163) 评论(2) 推荐(0) 编辑
摘要: #include<stdio.h>#include<math.h>int x[100],j;int w;int a(int b,int c){ int n; n=b-c; if(n==0) return 0; if(n>0) return n; else return -n;}bool place( 阅读全文
posted @ 2016-08-28 15:04 刘cy 阅读(166) 评论(2) 推荐(0) 编辑
摘要: #include<stdio.h>int b[11]={0,1,2,3,4,5,6,12,13,18,19},n;int z(int x,int y){ int z; if(x<=y) { z=(x+y)/2; if(b[z]==n) return z; if(b[z]<n) return zhd( 阅读全文
posted @ 2016-07-07 20:47 刘cy 阅读(117) 评论(0) 推荐(0) 编辑
摘要: #include// -------------------------- void h(int n,char a,char b,char c )// | {// | if(n==1)// ... 阅读全文
posted @ 2016-07-07 17:18 刘cy 阅读(85) 评论(1) 推荐(0) 编辑
摘要: #include<stdio.h>double a[10005],b[10005];void arraycopy(double c[],double d[],int m) { for (int i=1;i<=m;i++) d[i]=c[i];}int main(){ int n; scanf("%d 阅读全文
posted @ 2016-07-07 11:12 刘cy 阅读(153) 评论(16) 推荐(1) 编辑
摘要: 阅读全文
posted @ 2016-07-07 11:07 刘cy 阅读(106) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<string.h>char s[1000];int a[1000]={0};int main(){ int l,i,t; scanf("%s",s); scanf("%d",&t); l=strlen(s); for(i=0;i<=l-1;i++) 阅读全文
posted @ 2016-07-06 20:32 刘cy 阅读(122) 评论(2) 推荐(0) 编辑
摘要: #include<stdio.h>#include<string.h>int a[1000]={0},b[1000]={0},c[1000]={0};int main(){ char *s1; int l1=0,l2=0,l,i,x; freopen("hp-.in","r",stdin); fre 阅读全文
posted @ 2016-07-06 19:19 刘cy 阅读(143) 评论(0) 推荐(0) 编辑