Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int a,b,c,d,e,i;
- scanf("%d",&a);
- for(i=0;i<a;i++)
- {
- scanf("%d %d %d %d",&b,&c,&d,&e);
- if(c<=d && b<=e) printf("S\n");
- else printf("N\n");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement