| ||||||||||
| 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 n,d,i;
float x,y;
double pi=acos(-1.0);
scanf("%d",&n);
for(i=1;i<=n;i++){
scanf("%f %f",&x,&y);
d=(int)(pi*(x*x+y*y)/50/2);
printf("Property %d: This property will begin eroding in year %d.\n",i,d+1);
}
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