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

Re:这样就行了

Posted by IC0590501111 at 2005-11-09 09:08:21 on Problem 1005
In Reply To:这样就行了 Posted by:yzhdyw at 2005-09-04 12:53:35
> #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