Codeforces Gym 100203I I
Given an n × m rectangular tile with each square marked with one of the letters W, I, and N, find the maximal number of triominoes that can be cut from this tile such that the triomino has W and N on the ends and I in the middle (that is, it spells WIN in some order). Of course the only possible triominoes are the one with three squares in a straight line and the L-shaped ones, and the triominoes can‘t overlap.
,温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/68397.html