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
By Confused Crossbill at Mar 24 2021
By Confused Crossbill at Mar 24 2021