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:34:28
#include<iostream>
#include<cmath>
#define pi 3.1415926
using namespace std;
int main()
{
int num;
double x,y,s0=50,j=0,k,s;

cin>>num;
for(int i=1;i<=num;i++)
{
cin>>x>>y;
for(int k=1;;k++)
{
s=pi*(x*x+y*y);
if(k*s0>s)
{
 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