Advertisement
Saleh127

uri 3004

Mar 13th, 2020
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int a,b,c,d,e,i;
  5. scanf("%d",&a);
  6. for(i=0;i<a;i++)
  7. {
  8. scanf("%d %d %d %d",&b,&c,&d,&e);
  9. if(c<=d && b<=e) printf("S\n");
  10. else printf("N\n");
  11.  
  12. }
  13. return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement