Cod sursa(job #635332)

Utilizator ctlin04UAIC.VlasCatalin ctlin04 Data 19 noiembrie 2011 10:29:17
Problema ChatNoir Scor 0
Compilator fpc Status done
Runda .com 2011 Marime 0.42 kb
Program chatnoir;
 var m,n,x,y,i,t:longint;
     fi,fo:text;
begin
 assign(fi,'chatnoir.in');
  assign(fo,'chatnoir.out');
 reset(fi); rewrite(fo);
 readln(fi,t);
 for i:=1 to t do begin
                  readln(fi,n,m,x,y);
                  if (n-x<5) or (m-y<5) or (x<5) or (y<5) then writeln(fo,'DA')
                                              else writeln(fo,'NU');
                  end;
 close(fo);
end.