시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
2 초 128 MB 1014 308 232 30.406%

문제

아래의 그림과 같이 높은 빌딩 사이를 따라 좁은 길이 나있다. 두 개의 사다리가 있는데 길이가 x인 사다리는 오른쪽 빌딩의 아래를 받침대로 하여 왼쪽 빌딩에 기대져 있고 길이가 y인 사다리는 왼쪽 빌딩의 아래를 받침대로 하여 오른쪽 빌딩에 기대져 있다. 그리고 두 사다리는 땅에서부터 정확하게 c인 지점에서 서로 교차한다. 그렇다면 두 빌딩은 얼마나 떨어져 있는 걸까?

입력

첫째 줄에 차례대로 x, y, c에 해당하는 양의 실수 세 개가 입력된다.

출력

두 빌딩사이에 너비가 되는 수치를 소수점 4째 자리에서 반올림 하여 소수점 3째 자리까지 출력한다.

예제 입력 1

30 40 10
12.619429 8.163332 3
10 10 3
10 10 1

예제 출력 1

26.033
7.000
8.000
9.798
W3sicHJvYmxlbV9pZCI6IjIwMjIiLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJcdWMwYWNcdWIyZTRcdWI5YWMiLCJkZXNjcmlwdGlvbiI6IjxwPlx1YzU0NFx1Yjc5OFx1Yzc1OCBcdWFkZjhcdWI5YmNcdWFjZmMgXHVhYzE5XHVjNzc0IFx1YjE5Mlx1Yzc0MCBcdWJlNGNcdWI1MjkgXHVjMGFjXHVjNzc0XHViOTdjIFx1YjUzMFx1Yjc3YyBcdWM4ODFcdWM3NDAgXHVhZTM4XHVjNzc0IFx1YjA5OFx1Yzc4OFx1YjJlNC4gXHViNDUwIFx1YWMxY1x1Yzc1OCBcdWMwYWNcdWIyZTRcdWI5YWNcdWFjMDAgXHVjNzg4XHViMjk0XHViMzcwIFx1YWUzOFx1Yzc3NFx1YWMwMCB4XHVjNzc4IFx1YzBhY1x1YjJlNFx1YjlhY1x1YjI5NCBcdWM2MjRcdWI5NzhcdWNhYmQgXHViZTRjXHViNTI5XHVjNzU4IFx1YzU0NFx1Yjc5OFx1Yjk3YyBcdWJjMWJc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