#include #include #include using namespace std; typedef long long ll; typedef tuple tlll; //能交换任意两个相邻肯定就能实现全部序列,要实现全部序列也得能交换任意两个相邻 //最难的就是最中间的两个互换,因为两边空间更大 //扩展欧几里得算法 tlll check(ll a,ll b){ if(a(sub),get<2>(sub),get<1>(sub)-get<2>(sub)*q); } int main(){ int t; cin>>t; for(int i=0;i>n>>a>>b; if(a==1||b==1) {cout<<"YES"<(rst)!=1) {cout<<"NO"<(rst)>0&&get<1>(rst)*a>n/2) {cout<<"NO"<(rst)>0&&get<2>(rst)*b>n/2) {cout<<"NO"<