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; int main() { int n,i; cin>>n; float x,y; int sem; i=1; while(i<=n) { cin>>x>>y; sem=(3.14/2.0)*(x*x+y*y)/50; cout<<"Property "<<i<<": This property will begin eroding in year "<<sem+1<<"."<<endl; i++; } 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