album lucchesi.c
TRANSCRIPT
![Page 1: Album Lucchesi.c](https://reader031.vdocuments.net/reader031/viewer/2022021121/563db83a550346aa9a91be88/html5/thumbnails/1.jpg)
7/23/2019 Album Lucchesi.c
http://slidepdf.com/reader/full/album-lucchesic 1/1
#include <stdio.h>
int main(int argc, char *noargs[]) { int x, y, ell[4]; char res; scanf ("%d %d %d %d %d %d", &x, &y, &ell[0], &ell[1], &ell[2], &ell[3]); if (((x >= ell[0] + ell[2]) && (y >= ell[1]) && (y >= ell[3])) || ((x >= ell[0] + ell[3]) && (y >= ell[1]) && (y >= ell[2])) || ((x >= ell[1] + ell[2]) && (y >= ell[0]) && (y >= ell[3])) || ((x >= ell[1] + ell[3]) && (y >= ell[0]) && (y >= ell[2])) || ((y >= ell[0] + ell[2]) && (x >= ell[1]) && (x >= ell[3])) || ((y >= ell[0] + ell[3]) && (x >= ell[1]) && (x >= ell[2])) || ((y >= ell[1] + ell[2]) && (x >= ell[0]) && (x >= ell[3])) || ((y >= ell[1] + ell[3]) && (x >= ell[0]) && (x >= ell[2]))) res = 'S'; else res = 'N'; printf("%c\n", res); return 0;}