SHARE
TWEET

codeforce - water lily

jakaria_hossain Jul 31st, 2019 56 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top