Descriptions:

TorusSailing

TopCoder - 12984