https://www.acmicpc.net/problem/2022
using System;
class Program
{
static double f(double x,double k, double a){
return -(a*x/k)+a;
}
static void Main() {
string[] s=Console.ReadLine().Split(' ');
double x=double.Parse(s[0]);
double y=double.Parse(s[1]);
double c=double.Parse(s[2]);
double l=0;
double r=x<y?x:y;
for(int i=0;i<100;i++){
double k=(r+l)/2;
double a=Math.Sqrt(x*x-k*k);
double b=Math.Sqrt(y*y-k*k);
double c0=k*c/b;
if(f(c0,k,a)>c) l=k;
else r=k;
}
Console.Write("{0:F3}",l);
}
}