This is a simple mathematics problem

TimeLimit:100MS  MemoryLimit:128MB
64-bit integer IO format:%lld
未提交 | 登录后收藏
Problem Description

The question is simple, first give you a function like image.png, and give you a point (a, b,J(a,b)) in this function. Can you calculate the distance of the point along the surface to the origin (0,0,0)? 

给一个椭圆抛物面让你求抛物面上的点沿抛物面到原点的距离

Input

There multiple test cases in the input

for each test case contain one line

The line have four integer A, B, a, b mentioned above

0<A,B<100, -100<a,b<100 


Output

For each test case output a number means the distance, error precision less than 1e-6.


SampleInput
1 1 1 1
2 2 2 2
SampleOutput
3.285772
45.460735
Submit
题目统计信息详细
总AC数3
通过人数2
尝试人数2
总提交量13
AC率15.38%
AC该题后可以添加标签
贴完标签可以获得20ACB。
并且可以获得本题所有提交代码查看权限。
点击标题可以显示标签。
如果你还没认真思考过这题,请不要查看标签
如果您已经通过了该题,请务为该题贴上标签

T^T Online Judge

[BUG反馈] [FAQ] [闽ICP备17026590号-1]
当前版本:3.24 系统时间: