Skip to content

Instantly share code, notes, and snippets.

@own2pwn
Created October 26, 2016 10:10
Show Gist options
  • Save own2pwn/af49b04eeaa0a08a9bf3a42463178fa9 to your computer and use it in GitHub Desktop.
Save own2pwn/af49b04eeaa0a08a9bf3a42463178fa9 to your computer and use it in GitHub Desktop.
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment