Fisaow is a farmer. He has a large field covered with grass and wants to create some pattern or design in that field by removing grasses at certain places so that it looks like a crop circle from the sky. But he is not familiar with geometric shapes. One day he noticed that when a cow eats grass in the fields, it creates different geometric shapes based on how they are tied in the field.
Now he has cows and ropes. For every cow he will use 2 points and to tie it up. That means, one end of the rope will be tied to point and the other end to . Every cow has a metal ring around its neck and the rope will go through the metal ring such a way that the cow can move freely (see the picture: there is no knot with the ring). The cows will eat grass from wherever it can go. The amount of grass each cow can eat is the area that each cow can cover.
Now Fisaow has given you the points and the length of the ropes for each of the cows. Help him to find the maximum amount of grass each cow can eat.
Note: .
Input starts with an integer (), the number of cows. The next lines will have 5 space separated integers , , , , (), coordinates of the two points, and (), the length the each rope.
For each cow, print the maximum amount of grass it can eat in separate lines. Absolute errors less than will be ignored.
Input | Output |
---|---|
4 0 0 6 0 10 -4 3 8 3 20 -5 6 5 6 26 -3 -6 -3 -18 20 | 62.8318530718 251.3274122872 490.0884539600 251.3274122872 |