Created
October 26, 2016 10:10
-
-
Save own2pwn/af49b04eeaa0a08a9bf3a42463178fa9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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