It's election time. The farm is partitioned into a 5x5 grid of cow locations, each of which holds either a Holstein ('H') or Jersey ('J') cow. The Jerseys want to create a voting district of 7 contiguous (vertically or horizontally) cow locationssuch that the Jerseys outnumber the Holsteins. How many ways can this be done for the supplied grid?
农场被划分为 的格子,每个格子中都有一头奶牛,并且只有荷斯坦(标记为 H )和杰尔西(标记为 J )两个品种。