AIM Tech Mini Marathon 1


01. Labyrinth-1
time limit per test: 8 seconds
memory limit per test: 512 megabytes
input: standard input
output: standard output

Examples
Input
1 1 30 30 1 1 1 1 1 1
1 1 1 2
2 2 2 3
1 4
9 0
Output
for-1111
  take
  open-up
  open-left
  open-right
  open-down
  move-left
  if-ok
    for-11
      move-left
  take
  open-up
  open-left
  open-right
  open-down
    end
  else
    move-right
    if-ok
      for-11
        move-right
  take
  open-up
  open-left
  open-right
  open-down
      end
    else endif
  endif
  move-up
  if-ok
    for-11
      move-up
  take
  open-up
  open-left
  open-right
  open-down
    end
  else
    move-down
    if-ok
      for-11
        move-down
  take
  open-up
  open-left
  open-right
  open-down
      end
    else endif
  endif
end
----------------------------------------------------------------------------------------------------
02. Labyrinth-2
time limit per test: 8 seconds
memory limit per test: 512 megabytes
input: standard input
output: standard output

No test samples are available for this problem
----------------------------------------------------------------------------------------------------
03. Labyrinth-3
time limit per test: 8 seconds
memory limit per test: 512 megabytes
input: standard input
output: standard output

No test samples are available for this problem
----------------------------------------------------------------------------------------------------
04. Labyrinth-4
time limit per test: 8 seconds
memory limit per test: 512 megabytes
input: standard input
output: standard output

No test samples are available for this problem
----------------------------------------------------------------------------------------------------
05. Labyrinth-5
time limit per test: 8 seconds
memory limit per test: 512 megabytes
input: standard input
output: standard output

No test samples are available for this problem
----------------------------------------------------------------------------------------------------
06. Labyrinth-6
time limit per test: 8 seconds
memory limit per test: 512 megabytes
input: standard input
output: standard output

No test samples are available for this problem
----------------------------------------------------------------------------------------------------
07. Labyrinth-7
time limit per test: 8 seconds
memory limit per test: 512 megabytes
input: standard input
output: standard output

No test samples are available for this problem
----------------------------------------------------------------------------------------------------
08. Labyrinth-8
time limit per test: 8 seconds
memory limit per test: 512 megabytes
input: standard input
output: standard output

No test samples are available for this problem
----------------------------------------------------------------------------------------------------
09. Labyrinth-9
time limit per test: 8 seconds
memory limit per test: 512 megabytes
input: standard input
output: standard output

No test samples are available for this problem
----------------------------------------------------------------------------------------------------
10. Labyrinth-10
time limit per test: 8 seconds
memory limit per test: 512 megabytes
input: standard input
output: standard output

No test samples are available for this problem
----------------------------------------------------------------------------------------------------
11. Labyrinth-11
time limit per test: 8 seconds
memory limit per test: 512 megabytes
input: standard input
output: standard output

No test samples are available for this problem
----------------------------------------------------------------------------------------------------
12. Labyrinth-12
time limit per test: 8 seconds
memory limit per test: 512 megabytes
input: standard input
output: standard output

No test samples are available for this problem
----------------------------------------------------------------------------------------------------
13. Labyrinth-13
time limit per test: 8 seconds
memory limit per test: 512 megabytes
input: standard input
output: standard output

No test samples are available for this problem
----------------------------------------------------------------------------------------------------
14. Labyrinth-14
time limit per test: 8 seconds
memory limit per test: 512 megabytes
input: standard input
output: standard output

No test samples are available for this problem
----------------------------------------------------------------------------------------------------
