标签:string ons cst output res cpp pac vector his
#include <iostream> #include <cstdio> #include <cstdlib> #include <cstring> #include <cctype> #include <vector> #include <map> #include <set> #include <stack> #include <queue> #include <cmath> #include <algorithm> #include <string> using namespace std; const double pi=3.141592653; int main() { int num; double x,y; cin>>num; for(int i=0;i<num;i++) { cin>>x>>y; double result=floor((x*x+y*y)*pi/2/50)+1; cout<<"Property "<<i<<": This property will begin eroding in year "<<result<<"." <<endl; } cout<<"END OF OUTPUT."<<endl; return 0; }
标签:string ons cst output res cpp pac vector his
原文地址:http://www.cnblogs.com/xlqtlhx/p/6082399.html