SP8670 MAXLN - THE MAX LINES
Description
In this problem you will be given a half-circle. The half-circle’s radius is _r_. You can take any point A on the half-circle and draw 2 lines from the point to the two sides of the diameter(AB and AC). Let the sum of square of one line’s length and the other line’s length is _s_
Like in the figure _s_ = _AB_ $ ^{2} $ + _AC_. And _BC_ = 2_r_.
Now given _r_ you have to find the maximum value of _s_. That is you have to find point A such that _AB_ $ ^{2} $ + _AC_ is maximum.
Input Format
First line of the test case will be the number of test case T (1
Output Format
For each input line, print a line containing "Case I: ", where I is the test case number and the maximum value of _s_. Print 2 digit after decimal (Errors should be less then .01).