Strange Table Solution Codeforces Round #710 Div. 3

Strange Table solution Codeforces Round #710 Div. 3 Polycarp found a rectangular table consisting of nn rows and mm columns. He noticed that each cell of the table has its number, obtained by the following algorithm “by columns”: cells are numbered starting from one; cells are numbered from left to right by columns, and inside each column from top to … Read more