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 |
怎么wrong answer了!!#include <stdio.h> #include <math.h> void main() { int i=1,j,N; double x,y,r=0.00,temp; scanf("%d",&N); for(i=1;i<=N;i++) { r=0.00; scanf("%lf%lf",&x,&y); temp=sqrt(x*x+y*y); for(j=1;r<temp;j++) r=sqrt(100*j/3.14159); printf("Property %d: This property will begin eroding in year %d\n",i,j-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