#include #include #include #include #include using namespace std; #define REP(i,a,b) for(i=a;i> a >> b; rep = (int)(hypot(a,b)*2); if(rep <= hypot(a,b)*2 ) rep++; cout << rep << endl; return 0; }