LCM Walk(HDU-5584)Problem DescriptionInputOutputExamplesSource Program
Problem DescriptionA frog has just learned some number theory, and can't wait to show his ability to his girlfriend.Now the frog is sitting on a grid map of infinite rows and columns. Rows are n...