fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n;
  6. cin >> n;
  7. for(int i=0;i<n;i++) {
  8. int l, r;
  9. cin >> l >> r;
  10. if (2 * l <= r) {
  11. cout << "NO" << endl;
  12. } else {
  13. cout << "YES" << endl;
  14. }
  15. }
  16. return 0;
  17. }
Success #stdin #stdout 0s 4396KB
stdin
3
3 4
1 2
120 150
stdout
YES
NO
YES