poj_1005

/*
//ACM Poj 1005
//File: 1005.cpp
//Author: Kangzj
//Mail: Kangzj@mail.bnu.edu.cn
//Date: April 28, 2009
*/
#include
#include
#define PI 3.14159265358979
using namespace std;
int main()
{
  double distance;
  int n;
  cin>>n;
  double *x=new double[n];
  double *y=new double[n];
  int *year=new int[n];
  for(int i=0;i>x[i]>>y[i];
    distance=sqrt(x[i]*x[i]+y[i]*y[i]);
    int j=1;
    double r=0;
    while(1)
    {
      r=sqrt(100/PI+r*r);
      if(distance< =r)break;
      j++;
    }
    year[i]=j;
  }
  for(int i=0;i

Leave a Reply

Your email address will not be published. Required fields are marked *