fork download
  1. def task_8_18():
  2. i = 0
  3. while wall_is_beneath():
  4. if not wall_is_above():
  5. move_up()
  6. while True:
  7. if not cell_is_filled():
  8. fill_cell()
  9. else:
  10. i += 1
  11. if wall_is_above():
  12. break
  13. move_up()
  14. while not wall_is_beneath():
  15. move_down()
  16. else:
  17. fill_cell()
  18. move_right()
  19. mov('ax', i)
Success #stdin #stdout 0.02s 9132KB
stdin
Standard input is empty
stdout
Standard output is empty