##
__THE MAX LINES__

Link to the question : MAXLN

###
__HINT :__

Very simple calculus problem. You can find the maximum value of s by taking s as a function of AB and AC, where AB can be x and AC dependent on x and r. Do the derivation and get the answer.

###
__SOURCE CODE :__

`#include<iostream>`

using namespace std;

int main()

{

int t,i=1;

long long s,r;

cin>>t;

while(t--)

{

cin>>r;

s = 4*r*r;

cout<<"Case "<<i<<": "<<s<<".25"<<endl;

i++;

}

return 0;

}

## 0 comments:

## Post a Comment