Ankit_132

A

Jan 3rd, 2024
1,009
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.     int t;
  7.     cin>>t;
  8.    
  9.     while(t--)
  10.     {
  11.         int n,x,y;
  12.         cin>>n>>x>>y;
  13.        
  14.         if(n>x)
  15.             cout<<"NO\n";
  16.         else
  17.         {
  18.             x+=(y/3);
  19.            
  20.             if(n*2<=x)  cout<<"yes\n";
  21.             else        cout<<"no\n";
  22.         }
  23.     }
  24. }
  25.  
Advertisement
Add Comment
Please, Sign In to add comment