Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- program d;
- var
- l, a, b:integer;
- begin
- readln (a,b,l);
- if (l mod (a+a+b+b)- a) <= 0 then
- begin
- write('BOTTOM');
- end
- else
- if (l mod (a+a+b+b)- a-b) <= 0 then
- begin
- write('RIGHT');
- end;
- else
- if (l mod (a+a+b+b)- a-b-a) <= 0 then
- begin
- write('TOP');
- end;
- else
- if (l mod (a+a+b+b)- a-b-a-b) <= 0 then
- write('LEFT');
- end;
- end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement