This year, Bob will participate in the "Take-Off Programming Contest Spring 2023", a prestigious programming contest at his university. He wants to be in the top in this contest, so he started solving different kinds of problems. At this moment, he came across an interesting problem. There are four circles with equal radius, touching each other by their edges. What will be the area of the black-shaded region in the picture below?
Since Bob is still a newbie at problem-solving, he needs your help to solve this interesting problem. Can you figure out the area of the black-shaded region?
The first line will be a single integer — indicating the number of test cases.
The following lines will contain an integer — indicating the radius of each circle.
You have to output lines in the format “Case X: Y” (without quotes), where represents the number of test cases starting from to , and is the area of the black-shaded region rounded to four decimal places.
Check out the samples for clarification.
Input | Output |
---|---|
2 4 13 | Case 1: 13.7344 Case 2: 145.0696 |
Use ‘‘Double’’ to avoid precision errors.
Be careful about the new line (‘\n’) at the end.