海盗互不对指:最小 n
Shootout
题目详情
有 个海盗,每个海盗有 2 门炮,分别指向其余 个海盗中的两个不同人。
问:最小的 是多少,才能做到“没有任何两名海盗互相指向对方”(不存在 A 指向 B 且 B 指向 A)?
pirates all stole some gold! However, all of them are greedy, so they each are loaded with cannons. Each of the pirates has cannons that they point at distinct pirates among the other pirates. What is the minimum value of such that it is possible to have a situation where no two pirates are mutually pointing cannons at one another?
解析
当 时共有 对海盗,但需要指向的炮共有 8 次指向,鸽巢原理可知必出现互指。
当 时可构造:海盗 指向 与 ,则不存在互指。
因此最小 。
Original Explanation
With , clearly the pirates can only point at one another. With , there are also only options for the pirates to point at. Therefore, .
Note that there are pairs of pirates when we have pirates total. With , there would be pairs of pirates but cannons that need to be pointed. Therefore, by Pigeonhole Principle, at least pirates will be pointing at one another. If , then there would be pairs of pirates and cannons that need to be pointed. Therefore, the way we can match is that pirate , , points at pirates and . This satisfies our criterion, so is our answer.