fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. ios_base::sync_with_stdio(false);
  6. cin.tie(NULL);
  7. int t;
  8. cin>>t;
  9. while(t--)
  10. {
  11. float l,r;
  12. cin>>l>>r;
  13. float c = (r+1)/2;
  14. if(l>=c)
  15. cout<<"YES"<<endl;
  16. else
  17. cout<<"NO"<<endl;
  18.  
  19.  
  20. }
  21. return 0;
  22. }
Success #stdin #stdout 0s 4504KB
stdin
1
200014 400027
stdout
YES