var x,y:real;
begin
readln(x,y);
writeln((x*y<=0)and(y<=x+2)and(y>=x-2)or(x*x+y*y<=2*2)and((y<=-x-2)or(y>=-x+2)));
end.
Пример:
1.2 1.2
True
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
var x,y:real;
begin
readln(x,y);
writeln((x*y<=0)and(y<=x+2)and(y>=x-2)or(x*x+y*y<=2*2)and((y<=-x-2)or(y>=-x+2)));
end.
Пример:
1.2 1.2
True