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,j;
- scanf("%d",&a);
- for(i=0;i<a;i++)
- {
- scanf("%d %d %d %d",&b,&c,&d,&e);
- if(b<c)
- {
- i=b;
- b=c;
- c=i;
- }
- if(d<e)
- {
- j=d;
- d=e;
- e=j;
- }
- if(b<d && c<e) printf("S\n");
- else printf("N\n");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment