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:syzmohammed at 2011-07-04 15:54:00 > #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; > } > while((x>r)||(y>r))这个错了吧 我觉得是x坐标可以小于0,有坐标大于等于0.0,比如-25.0 0.0 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator