#define _USE_MATH_DEFINES #pragma region include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include //// //#include // #pragma endregion //#include ///////// #pragma region typedef typedef long long LL; typedef long double LD; typedef unsigned long long ULL; #pragma endregion //typedef ////定数 const int INF = (int)1e9; const LL MOD = (LL)1e9+7; const LL LINF = (LL)4e18+20; const LD PI = acos(-1.0); const double EPS = 1e-9; ///////// using namespace::std; /* 531424756029718528 531424756029718580 531424756029718580 531424756029718528 */ bool dfs(LL X,LL Y,int dep){ if(dep>4000){ return false; } if(X<0||Y<0){ return false; } if(X==0||Y==0){///////////////////////////途中で0になる return true; } if(X%2==0){ if(dfs(X/2,Y-1,dep+1)){ return true; } } if(Y%2==0){ if(dfs(X-1,Y/2,dep+1)){ return true; } } return false; } void solve(){ LL A,B; cin>>A>>B; /*if( B