Author: Andrey Bogdanov
Draw a single continuous loop in the grid using horizontal and vertical line segments so that the loop visits every cell exactly once. It should not cross or overlap itself. Clues outside indicate the lengths of the shortest segment in that direction.
Grid control: To draw a line press the mouse button at a start cell and move mouse to another cell holding the button. More details about grid control are at the help page.