PKU 1005

I Think I Need a Houseboat

#include <iostream>
#define _USE_MATH_DEFINES
#include <math.h>

using namespace std;

int main()
{
    int n;
    cin >> n;

    for ( int i=1; i<=n; i++ )
    {
        double x, y;
        cin >> x >> y;

        double r = sqrt( x*x + y*y );
        double area = M_PI/2 * r*r;

        printf( "Property %d: This property will begin eroding in year %.0f.\n",
                i, ceil(area/50) );
    }

    printf( "END OF OUTPUT.\n" );

    return 0;
}