Cod sursa(job #146712)

Utilizator ghitza_2000Stefan Gheorghe ghitza_2000 Data 2 martie 2008 00:28:45
Problema Fructe Scor 0
Compilator fpc Status done
Runda Arhiva de probleme Marime 0.26 kb
var a,b,t,i:longint;
    f,g:text;
begin
assign(f,'fructe.in'); reset(f);
assign(g,'fructe.out'); rewrite(g);
readln(f,t);
for i:=1 to t do begin
readln(f,a,b);
if (a=1) and (b=1) then writeln(g,'1')
else
writeln(g,'0');
end;
close(f); close(g);
end.