Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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

5
1 1 1
2 2 3
3 5 11
100 100 7312
1000000 1000000 1000000000000
 
PREVIOUS NEXT
Tagged: #Polycarp #rectangular #table #consisting #rows #He #noticed #cell #table #obtained #algorithm #codeforces #solution
ADD COMMENT
Topic
Name
8+7 =