local ffi = require("ffi") local C = ffi.C ffi.cdef[[ long long atoll(const char*); ]] local function lltonumber(str) return C.atoll(str) end local q = io.read("*n", "*l") for iq = 1, q do local x, y = io.read():match("(%d+) (%d+)") x = lltonumber(x) y = lltonumber(y) local z = (x / 2LL) * ((x + 1LL) / 2LL) if y <= z then print("Yes") else print("No") end end