polycarp found a rectangular table consisting of n rows and m columns. he noticed that each cell of the table has its number, obtained by the following algorithm "by columns": codeforces solution
0
polycarp found a rectangular table consisting of n rows and m columns. he noticed that each cell of the table has its number, obtained by the following algorithm "by columns": codeforces solution