Matrix game

Problem Name:
Matrix game
Site:CodeForces
Links:
Tags: