Pagini recente » Cod sursa (job #400493) | Borderou de evaluare (job #1731212) | Cod sursa (job #2629586) | Cod sursa (job #2001203) | Cod sursa (job #635369)
Cod sursa(job #635369)
Program chatnoir;
var m,n,x,y,i,t:longint;
b1,b2:array [1..1 shl 15] of char;
fi,fo:text;
begin
assign(fi,'chatnoir.in');
assign(fo,'chatnoir.out');
settextbuf(fi,b1);
settextbuf(fo,b2);
reset(fi); rewrite(fo);
readln(fi,t);
for i:=1 to t do begin
readln(fi,n,m,x,y);
if (n-x<=4) or (m-y<=4) or (x<=5) or (y<=5) then writeln(fo,'DA')
else writeln(fo,'NU');
end;
close(fo);
end.