1、小蓝的决议
题目 小蓝的决议
思路分析
X大于N/2通过
尽量把除法转变成乘法
代码实现
#include<bits/stdc++.h>
using namespace std;
#define endl '\n'
int main()
{
ios::sync_with_stdio(0),cin.tie(0),cout.tie(0);
int T;cin>>T;
while(T--){
int N,X;
cin>>N>>X;
if(2*X>=N)
cout<<"YES"<<endl;
else
cout<<"NO"<<endl;
}
return 0;
}
💬 评论