| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
很简单的题目,WA的自己看,不解释#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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator