| ||||||||||
| 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 | |||||||||
救救我,这个为什么过不了?#include<stdio.h>
#include<math.h>
void main(){
int m[100000],n,i;
float x,y;
scanf("%d",&n);
for(i=0;i<n;i++)
{scanf("%f%f\n",&x,&y);
m[i]=(int)ceil((x*x+y*y)*3.1415926/100);}
for(i=0;i<n;i++)
{printf("Property %d:This property will begin eroding in year %d\n",
i+1,m[i]);
}
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