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

很简单的题目,WA的自己看,不解释

Posted by 201501060326 at 2016-03-27 21:48:36 on Problem 1005
#include <iostream>
#include <cmath>
using namespace std;
double pi=3.1415926;
int main()
{
    int k,count=1;
    double s,x,y;
    cin>>k;
    while(k--)
    {
        cin>>x>>y;
        s=(pi/2)*(x*x+y*y);
        cout<<"Property "<<count++<<": This property will begin eroding in year "<<(int)(s/(double)50+1)<<"."<<endl;
    }
    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