返回题库

PUMaC 2007 · 组合(A 组) · 第 10 题

PUMaC 2007 — Combinatorics (Division A) — Problem 10

专题
Contest Math / 竞赛数学
难度
L3
来源
PUMaC

题目详情

在 8×88\times8 棋盘上放兵,要求每个 2×12\times1 或 1×21\times2 长方形至少有一个兵,且每个 7×17\times1 或 1×71\times7 长方形至少含有一对相邻的兵。求兵的最少数量。

英文原题

Pawns are arranged on an 8×88\times8 chessboard such that every 2×12\times1 or 1×21\times2 rectangle has at least one pawn, and every 7×17\times1 or 1×71\times7 rectangle has at least one pair of adjacent pawns. What is the minimum number of pawns?

解析

第一个条件等价于:任意两个沿边相邻的格子不能同时为空。因此空格在棋盘网格图中构成独立集。

下面的构造使用 37 个兵,其中 11 表示有兵,00 表示空格:

01101010,10110101,01101010,11010111,10101101,01011010,10110101,01101010.01101010, 10110101, 01101010, 11010111, 10101101, 01011010, 10110101, 01101010.

从这个排列可直接检查:没有相邻空格,并且任意长度为 7 的横向或纵向连续段都含有相邻的两个兵。

下界方面,逐行最大化空格数。每一行的状态必须没有相邻空格,并且已经满足两个横向长度 7 条件;相邻两行还不能在同一列同时为空。枚举这些有限行状态后,再加入两个纵向长度 7 条件,最多只能放 2727 个空格。因此至少需要

64−27=3764-27=37

个兵。

所以最小值为

37.\boxed{37}.

英文解析

The first condition says no two orthogonally adjacent squares are both empty. Thus the empty squares form an independent set in the grid.

A construction with 3737 pawns is given by the following rows, where 11 means pawn and 00 means empty:

01101010,10110101,01101010,11010111,10101101,01011010,10110101,01101010.01101010, 10110101, 01101010, 11010111, 10101101, 01011010, 10110101, 01101010.

It is immediate from the pattern that no adjacent pair is empty, and each length-77 row or column segment contains adjacent 11's.

To prove optimality, maximize the number of empty squares row by row. Each row mask must have no adjacent empty squares and must already satisfy the two horizontal length-77 conditions; consecutive row masks must have no empty square in the same column. Checking these finite row states and then imposing the two vertical length-77 conditions gives a maximum of 2727 empty squares. Hence at least 64−27=3764-27=37 pawns are necessary.

Therefore the minimum is

37.\boxed{37}.