Advertisement
jakaria_hossain

codeforce - water lily

Jul 31st, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5. double c,h,l;
  6. cin>>h>>l;
  7. c=(l*l)-(h*h);
  8. c/=(2*h);
  9. cout.precision(16);
  10. cout<<c<<endl;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement