#include using namespace std; using ll = long long; void solve(){ ios::sync_with_stdio(false); cin.tie(nullptr); int D,K; cin>>D>>K; vector A(0,array()); if(D==0){ A.push_back({0,0}); } for(int i=0;ia,arrayb){ return a[0]*a[0]+a[1]*a[1]A.size()){ cout<<"No\n"; }else{ cout<<"Yes\n"; cout<>test_case; while (test_case--){ solve(); } }