시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 | 512 MB | 40 | 16 | 15 | 45.455% |
In Manhattan, there are streets x = i and y = i for each integer i. It is known that both Snuke’s house and Smeke’s house are on streets, and the Euclidean distance between them is exactly d. Compute the maximal possible distance between their houses when they travel along streets.
The input contains one number d.
Print the answer. The answer is considered to be correct if its absolute or relative error is at most 10−9.
1.000
2.000000000000
2.345
3.316330803765