# Task
 Fred Mapper is considering purchasing some land in Louisiana to build his house on. In the process of investigating the land, he learned that the state of Louisiana is actually shrinking by 50 square miles each year, due to erosion caused by the Mississippi River. Since Fred is hoping to live in this house the rest of his life, he needs to know if his land is going to be lost to erosion.

 After doing more research, Fred has learned that the land that is being lost forms a semicircle. This semicircle is part of a circle centered at (0,0), with the line that bisects the circle being the `x` axis. Locations below the `x` axis are in the water. The semicircle has an area of 0 at the beginning of year 1. (Semicircle illustrated in the Figure.)

 ![](http://media.openjudge.cn/images/1005/semicircle.GIF)
 
 Given two coordinates `x` and `y`, your task is to calculate that Fred Mapper's house will begin eroding in how many years.
 
 Note:

 1. No property will appear exactly on the semicircle boundary: it will either be inside or outside. 

 2. All locations are given in miles.
 
 3. (0,0) will not be given.

# Example

 For `x = 1, y = 1`, the result should be `1`.
 
 After 1 year, Fred Mapper's house will begin eroding.
 
 For `x = 25, y = 0`, the result should be `20`.
 
 After 20 year, Fred Mapper's house will begin eroding.
 
# Input/Output


 - `[input]` integer `x`

  The X coordinates of the land Fred is considering. It will be an integer  point numbers measured in miles. 
  
  `-100 <= x <= 100`
  
  
 - `[input]` integer `y`

  The Y coordinates of the land Fred is considering. It will be an integer point numbers measured in miles. 
  
  `0 <= y <= 100`
  
  
 - `[output]` an integer
 
 The first year (start from 1) this point will be within the semicircle AT THE END OF YEAR.

Difficulty: EASY
Starter code: def does_fred_need_houseboat(x,y):
	

Solutions:
from math import ceil, pi

def does_fred_need_houseboat(x, y):
	return ceil(pi * (x ** 2 + y ** 2) / 100)


from math import pi, hypot, ceil

def does_fred_need_houseboat(x, y):
	return ceil(hypot(x, y) ** 2 * pi / 50 / 2)


from math import pi, sqrt, hypot
from itertools import count

def radius(year):
	return sqrt(100 * year / pi)

def does_fred_need_houseboat(x, y):
	return next((year for year in count(1) if hypot(x, y) < radius(year)))


import math

def does_fred_need_houseboat(x, y):
	return math.ceil(math.pi * (x * x + y * y) / 100)


def does_fred_need_houseboat(x, y):
	r = 0
	year = 0
	while x ** 2 + y ** 2 > r ** 2:
		area = 3.1415 * r ** 2 + 100.0
		r = (area / 3.1415) ** 0.5
		year += 1
	return year


from math import pi, ceil

def does_fred_need_houseboat(x, y):
	return ceil((x * x + y * y) * pi / 100.0)


def does_fred_need_houseboat(x, y):
	return int((x * x + y * y) * 3.14159265 / 100.0) + 1


import math

def does_fred_need_houseboat(x, y):
	r = (x * x + y * y) ** 0.5
	s = math.pi * r * r / 2
	return math.ceil(s / 50)