Almost Ternary Matrix

Problem Name:
Almost Ternary Matrix
Site:CodeForces
Links:
Tags:
Problem setters: