#include using namespace std; using ll = long long; templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (b> A >> B; if(A>B){ swap(A, B); } double C2; if(A==B){ C2 = A*A + B*B; }else{ C2 = B*B - A*A; } cout << setprecision(20); double ans = sqrt(C2); p(ans); return 0; }