| ||||||||||
| 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 | |||||||||
无聊的题(附代码)#include<iostream>
using namespace std;
#define PI 3.1415926
int main()
{
float i,j;
int n,m,k;
m=k=1;
cin>>n;
while(n--)
{
cin>>i>>j;
while((float)(100*(m++))/PI-i*i-j*j<0)
continue;
cout<<"Property "<<k++<<": This property will begin eroding in year "<<m-1<<"."<<endl;
m=1;
}
cout<<"END OF OUTPUT.";
return 0;
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator