fork(1) download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. int t;
  6. cin >> t;
  7. while(t--)
  8. {
  9. int n,x,y;
  10. cin >> x >> y;
  11. int a = x*3;
  12. if(y>=a) cout << "YES" << endl;
  13. else cout << "NO" << endl;
  14. }
  15. return 0;
  16. }
Success #stdin #stdout 0s 5324KB
stdin
4
1 10
12 0
10 29
10 30
stdout
YES
NO
NO
YES