Shichikuji and Power Grid

CodeForces - 1245D