Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

哪有错啊??请赐教!!

Posted by bingtianyu at 2006-08-11 16:18:07
#include<iostream>
#include<cmath>
#include "stdio.h"
#define pi 3.1415
using namespace std;
int main()
{
int num;
float x,y,s=50,r0,r,j=1,k;

cin>>num;
for(int i=1;i<=num;i++)
{
cin>>x>>y;
for(int k=1;;k++)
{
r=sqrt(x*x+y*y);
r0=sqrt(k*100/pi);
if(r0>r)
{
cout<<"Property "<<j++<<": This property will begin eroding in year "
    <<k<<"."<<endl;
 break;
}
}
}
cout<<"END OF OUTPUT"<<endl;
return 0;
}

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator