Codeforces decreasing heights editorial candidate base a[i][j]-i-j dp. Si buana significato. Glaceon cafe drink.

R34 pvs.