Gianina builds a wall of n columns of equal bricks. Columns are numbered 0 through n−1 from left to right. The height of a column is its brick count.
Initially every column has height 0. Over k steps, each step gives an inclusive column range [left,right] and a height h.
After all steps, output the final brick count in each column.
Line 1: n, k.
Next k lines: op left right height
op=1 add, op=2 removeleft, right: inclusive range (0≤left≤right<n)height: target heightPrint the final brick count of each column, one per line from left to right.