#include using namespace std; #include using namespace atcoder; using mint = modint998244353; using ll = long long; using ull = unsigned long long; #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) using namespace chrono; random_device rnd; mt19937 mt(rnd()); int RandInt(int a, int b) { return a + mt() % (b - a + 1); } const int dx[4] = {0, 1, 0, -1}; const int dy[4] = {1, 0, -1, 0}; int t; int main(){ cin>>t; while(t--){ ll d,x,y; cin>>d>>x>>y; ll x2,y2; x2=x-y; y2=x+y; if(x2<0){ x2=x+y; y2=y-x; } bool ok=true; //cerr<