算法1
数学题,不会、、、
参考文献
C++ 代码
#include<iostream>
#include<queue>
#include<vector>
#include<map>
#include<unordered_map>
#include<stack>
#include<set>
#include<algorithm>
#include<cmath>
#include<cstring>
#define INF 0x3f3f3f3f
#define EPS 1e-8
using namespace std;
typedef long long ll;
typedef pair<int,int> PII;
typedef pair<ll,ll> PLL;
const int N = 1e5 + 10;
void solve()
{
int l,r;
cin >> l>> r;
r <= 2 * l - 1 ? puts("YES") : puts("NO");
}
int main()
{
ios::sync_with_stdio(0);
cin.tie(0), cout.tie(0);
int t;
cin >> t;
while(t--)
solve();
return 0;
}