using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Baekjoon
{
class Program
{
static void Main(string[] args)
{
int[] input = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray();
double d = input[0];
double h = input[1];
double w = input[2];
double ratio;
ratio = Math.Sqrt( d*d / (h*h + w*w));
h *= ratio;
w *= ratio;
Console.WriteLine($"{Math.Truncate(h)} {Math.Truncate(w)}");
}
}
}
- 올림 :
Math.Ceiling(double값)
- 내림 :
Math.Truncate(double값)
- 반올림 :
Math.Round(double값, 자릿수)