Sunday, September 28, 2014

ACM 1313. Some Words about Sport / К вопросу о спорте

Here is how our program should work. We start from a certain cell, and decrease both coordinates by 1 and output the number of the new cell if it is within the range [1..n][1..n].  We need to do this for all the elemenets of the first column one after another which will cover the half of the solution and then continue it for the elements [2..n][n].


        FULL SOURCE CODE

No comments:

Post a Comment