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 a,b;
  10. cin >> a >> b;
  11. if(a>10*b)
  12. {
  13. cout << "YES" << endl;
  14. }
  15. else
  16. {
  17. cout << "NO" << endl;
  18. }
  19. }
  20. return 0;
  21. }
Success #stdin #stdout 0.01s 5324KB
stdin
4
1 10
10 1
11 1
97 7
stdout
NO
NO
YES
YES