上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 30 下一页
摘要: 1 #include 2 3 int temp(int,int); 4 5 int main() 6 { 7 int n,m; 8 while(~scanf("%d%d",&n,&m)&&(n!=-1||m!=-1)) 9 { 10 int ans=temp(n,m); 11 if(ans==1) 12 ... 阅读全文
posted @ 2016-12-25 15:16 Posase 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 3 int main() 4 { 5 double ans,x; 6 int n=12; 7 while(n--) 8 { 9 scanf("%lf",&x); 10 ans+=x; 11 } 12 ans/=12; 13 printf("$%.2f\n",ans... 阅读全文
posted @ 2016-12-25 15:15 Posase 阅读(325) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 3 char s[300]; 4 5 int lenth(char s[]) 6 { 7 int i=0; 8 while(s[i]!='\0') 9 ++i; 10 return i; 11 } 12 int main() 13 { 14 int n,i,ans,len; 15 while(... 阅读全文
posted @ 2016-12-25 15:12 Posase 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 3 char s[300]; 4 5 int main() 6 { 7 int n,a,b; 8 char c; 9 double ans; 10 scanf("%d",&n); 11 getchar(); 12 while(n--) 13 { 14 ... 阅读全文
posted @ 2016-12-25 15:11 Posase 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 3 int jz(int x,int r,int temp) 4 { 5 int k=1,ans=0; 6 while(k <= x) 7 k*=r; 8 while(k!=1) 9 { 10 k/=r; 11 ans+=x/k%r; 12 } 13 if... 阅读全文
posted @ 2016-12-25 15:09 Posase 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 3 typedef struct 4 { 5 char num[6]; 6 char s[10]; 7 } cus; 8 9 cus xx[8]= {{"33","Zhejiang"},{"11","Beijing"}, 10 {"71","Taiwan"},{"81","Hong Kong"}, 11 ... 阅读全文
posted @ 2016-12-25 15:07 Posase 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 3 char s[1005]; 4 5 int lenth(char *); 6 7 int main() 8 { 9 int n,len,i,j,k; 10 while(~scanf("%d",&n)) 11 { 12 getchar(); 13 while(n--) 14 ... 阅读全文
posted @ 2016-12-20 20:14 Posase 阅读(358) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 int a[55]; 3 int main() 4 { 5 int Case=0,n,i,s,ans; 6 while(~scanf("%d",&n)&&n) 7 { 8 for(i=s=0; is) 17 ans+=a[i]-s; 18 } 19 i... 阅读全文
posted @ 2016-12-01 16:54 Posase 阅读(394) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 3 int main() 4 { 5 int n,m; 6 long long x,s,maxx; 7 while(~scanf("%d",&n)) 8 { 9 while(n--) 10 { 11 scanf("%d",&m); 12 s... 阅读全文
posted @ 2016-12-01 08:57 Posase 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 4 char a[1005][20]; 5 int num[1005]; 6 7 int find(int); //查找最多的颜色位置 8 int cpy(char a[],char b[]); //对比2个颜色是否相同 9 int lenth(char a[]); ... 阅读全文
posted @ 2016-11-30 17:05 Posase 阅读(305) 评论(0) 推荐(0) 编辑
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 30 下一页