Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- program p2;
- var
- r, x, y, d, par: Real;
- i: Integer;
- begin
- readln(r);
- for i := 1 to 10 do
- begin
- readln(x);
- readln(y);
- if (y <= r) and (y < sqrt((r * r) + (x * x))) and (y < ((x - 1) * (x - 1))) or (y >= r) and (y <= 2 * r) and (y < ((x - 1) * (x - 1))) and (x > 0)then begin
- writeln('popal');
- end;
- end;
- end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement