C. Fillomino 2 
Problem - C - Codeforces
Not easy to construct the solution, but there is a nice way to solve it. 
Construction 2: Construct the region for  in order. When starting at , we walk from  for  steps, where  is the number written on . For each step, if the cell to the left of your current cell is empty, we go to that cell and write  on it. Otherwise we go down and write  there.
C. Row GCD
 GCD(a1+bj,…,an+bj)=GCD(a1+bj,a2−a1,…,an−a1)
 .
.
C. DMCA
