| ||||||||||
| 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>
double power(double x,int y);
void main()
{
int n,i,z,j;
float x,y,r;
scanf("%d",&n);
for(i=0;i<n;i++)
{ j=1;
r=0;
scanf("%f %f",&x,&y);
while((x>r)||(y>r))
{
r=sqrt(j*50*2/3.14);
j++;
};
printf("Property %d: This property will begin eroding in year %d.\n",i+1,j-1);
}
printf("END OF OUTPUT.\n");
return 0;
}
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator