| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
Re:求助:这个程序哪里出问题拉?In Reply To:求助:这个程序哪里出问题拉? Posted by:Raycmond at 2005-11-27 13:22:16 > #include<stdio.h>
> #include<math.h>
> void main(){
> float x,y;
> int year,u,t,k=1,s[1000];
> scanf("%d",&u);
> for(t=1;t<=u;t++){
> scanf("%f%f",&x,&y);
> year=(int)ceil((x*x+y*y)*3.1416/100);
> s[t]=year;
> }
> for(;k<=t-1;k++)printf("property %d:This property will begin eroding in year %d.\n",k,s[k]);
> printf("END OF OUTPUT.\n");
> }
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator