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 yzhdyw at 2005-09-04 12:53:35 on Problem 1005
In Reply To:请大家帮看看我这人怎么过不了啊,郁闷!! Posted by:zerotext at 2005-05-13 13:55:14
#include<iostream.h>
int main(void)
{
    int n,year;
    float x,y,area;
    cin>>n;
    float *A=new float[n];
    for(int i=1;i<=n;i++)
    {
        cin>>x>>y;
        area=(x*x+y*y)*3.14159/2.0;
        year=1+(int)(area/50.0);
        cout<<"Property "<<i<<": This property will begin eroding in year "<<year<<".\n";
    }
    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