#P8828. [传智杯 #3 练习赛] 直角三角形
[传智杯 #3 练习赛] 直角三角形
Problem Description
The two legs of a right triangle are , its hypotenuse is , and are all positive integers.
Now we already know the hypotenuse length . What are the lengths of the two legs of this right triangle?
Input Format
Input one integer .
Output Format
Output two integers as the answer. It is guaranteed that an integer solution exists. If there are multiple possible answers, make sure is as small as possible.
5
3 4
Hint
Translated by ChatGPT 5