#abc292f. F - Regular Triangle Inside a Rectangle
F - Regular Triangle Inside a Rectangle
Score : points
问题描述
找出能在边长分别为 和 的矩形内绘制的最大正三角形的边长。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
Find the maximum side length of a regular triangle that can be drawn within a rectangle whose side lengths are and .
Constraints
- and are integers.
Input
The input is given from Standard Input in the following format:
Output
Print the answer.
Your output is considered correct if the absolute or relative error from the true answer is at most .
Sample Input 1
1 1
Sample Output 1
1.03527618041008295791
The following figure shows an optimal drawing, with the side length of .
Note that the sample output does not strictly match , but the error is within , so it is considered correct.
update @ 2024/3/10 12:11:13