Saleh127

Untitled

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