Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Prada
a53
Dec 27th, 2018
173
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.21 KB
| None
|
0
0
raw
download
clone
embed
print
report
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int HA,HB,D;
cin>>HA>>HB>>D;
if(HA<HB)
swap(HA,HB);
cout<<abs((D*D+HB*HB-HA*HA)/(2*D));
return 0;
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Exploit Documentation
CSS | 5 min ago | 1.01 KB
# Exploit found by AI
CSS | 5 min ago | 1.01 KB
Older node trading
CSS | 5 min ago | 1.01 KB
✅ FREE COINS METHOD
CSS | 5 min ago | 1.01 KB
Got $12,000 from this method
CSS | 15 min ago | 1.01 KB
Instant Profits Method
CSS | 15 min ago | 1.01 KB
Get $12,000 from this mehtod
CSS | 16 min ago | 0.86 KB
✅ +12,000$ in 2 days
CSS | 17 min ago | 1.01 KB
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
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!