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 |
你这样一行输入一行输出都能行,好神奇In Reply To:很简单的题目,WA的自己看,不解释 Posted by:201501060326 at 2016-03-27 21:48:36 > #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