| ||||||||||
| 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 | |||||||||
Re:一次AC,0ms。也是水题。In Reply To:一次AC,0ms。也是水题。 Posted by:sigepluto at 2010-04-27 01:22:20 > #include<iostream>
> using namespace std;
> const float PI = 3.1415926;
> int main()
> {
> float x;float y;
> int n; cin>>n;int m = 1;
> while(m++ <= n)
> {
> cin>>x>>y;int i;
> for( i = 1; x*x+y*y > 100*i/PI; i++);
> cout<<"Property "<<m-1<<": This property will begin eroding in year "<<i<<"."<<endl;
> } cout<<"END OF OUTPUT."<<endl;
> }
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator