上一页 1 ··· 82 83 84 85 86 87 88 89 90 ··· 99 下一页

2011年4月28日

计算球体积

摘要: #include<stdio.h>#define PI 3.1415927int main( ){ double r; while(scanf("%lf",&r)!=EOF) printf("%.3lf\n",PI*4*r*r*r/3); return 0;} 阅读全文

posted @ 2011-04-28 11:05 more think, more gains 阅读(151) 评论(0) 推荐(0) 编辑

ASCII码排序

摘要: #include<stdio.h>int main( ){ char ch[10]; while(scanf("%s",ch)!=EOF) { int a,b,c,temp; a=ch[0]-48; b=ch[1]-48; c=ch[2]-48; if(a<b) {temp=a;a=b;b=temp;} if(a<c) {temp=a;a=c;c=temp;} if(b<c) {temp=b;b=c;c=temp;} printf("%c %c %c\n",c+48,b+48,a+48); } return 0;} 阅读全文

posted @ 2011-04-28 11:02 more think, more gains 阅读(142) 评论(0) 推荐(0) 编辑

计算两点间的距离

摘要: #include<stdio.h>#include<math.h>int main( ){ double x1,y1,x2,y2; while(scanf("%lf",&x1)!=EOF) { scanf("%lf%lf%lf",&y1,&x2,&y2); printf("%.2lf\n",sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)));}return 0;} 阅读全文

posted @ 2011-04-28 10:56 more think, more gains 阅读(142) 评论(0) 推荐(0) 编辑

2011年4月27日

英文题,我恨你啊..

摘要: 做题看不懂英文懂好悲剧啊。。伤心啊。无法理解题意………… changing…………………… 阅读全文

posted @ 2011-04-27 17:36 more think, more gains 阅读(193) 评论(0) 推荐(0) 编辑

windows live writer

摘要: 阅读全文

posted @ 2011-04-27 00:57 more think, more gains 阅读(94) 评论(0) 推荐(0) 编辑

上一页 1 ··· 82 83 84 85 86 87 88 89 90 ··· 99 下一页

导航