/* -*- coding: utf-8 -*- * * 419.cc: No.419 直角三角形 - yukicoder */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; /* constant */ /* typedef */ /* global variables */ /* subroutines */ /* main */ int main() { int a, b; cin >> a >> b; double c = sqrt((double)abs(a * a - b * b)); printf("%.10lf\n", c); return 0; }