fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. #define fastio() ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL)
  5.  
  6.  
  7.  
  8. void solve() {
  9. long long a, v, l, n;
  10. cin>>a>>v>>l>>n;
  11. if(a>n && v>n){
  12. cout<<"YES"<<endl;
  13. }
  14. else
  15. cout<<"NO"<<endl;
  16. }
  17.  
  18.  
  19. int main() {
  20. fastio();
  21.  
  22. long long t;
  23. cin >> t;
  24. for(long long i=1;i<=t;i++){
  25. solve();
  26. }
  27.  
  28.  
  29. return 0;
  30. }
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
Standard output is empty