标签:
2 1.0 1.0 25.0 0.0
Property 1: This property will begin eroding in year 1. Property 2: This property will begin eroding in year 20. END OF OUTPUT.
#include <iostream> #include<cstdio> #include<cmath> #include<cstdlib> using namespace std; int n,t; double s,x,y,year; int main() { scanf("%d",&n); for(int t=1;t<=n;t++) { s=1.0; scanf("%lf%lf",&x,&y); s=3.1415926*(x*x+y*y)/2; printf("Property %d: ",t); printf("This property will begin eroding in year %d.\n",(int)(s/50)+1); } printf("END OF OUTPUT.\n"); return 0; }
HDU 1065.I Think I Need a Houseboat
标签:
原文地址:http://www.cnblogs.com/stepping/p/5648427.html