jakaria_hossain

codeforce - water lily

Jul 31st, 2019
99
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data