-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path3004.c
More file actions
45 lines (26 loc) · 642 Bytes
/
3004.c
File metadata and controls
45 lines (26 loc) · 642 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#include <stdio.h>
int main(){
int i, a, b, c, d, n;
scanf("%d", &n);
for(i = 0; i < n; i++){
int aux = 0, aux1 = 0;
scanf("%d %d %d %d", &a, &b, &c, &d);
if(a > b){
aux = a;
a = b;
b = aux;
}
if(c > d){
aux1 = c;
c = d;
d = aux1;
}
if(a < c && b < d){
printf("S\n");
}
else{
printf("N\n");
}
}
return 0;
}