跳到正文
实时
IBM Research Blog·· 3 天前

思考这个挑战 - 2026年12月 - 大鱼

Ponder This Challenge - December 2026 - Big Fish

要点速览

Xinyang Jiang 提出的 Big Fish 谜题要求在 1 到 100 的鱼中找到仅含 30 个冠军的排列,其中最大鱼必为冠军,但常有多余鱼成为冠军。冠军定义为能通过吞噬相邻小鱼成为唯一鱼的鱼。

正文

Big Fish

This riddle was suggested by Xinyang Jiang - thanks!

N fish swim in a narrow channel, one behind another. Their sizes are 1,2,…,N in some order. A fish may swallow an adjacent fish whose size is not larger than its own; it then grows by the size of the fish it swallowed, and the gap closes. A fish is defined as a champion if some sequence of meals leaves it as the only fish in the channel.

For example, in the arrangement 3 1 2, fish 3 is a champion, and so is fish 2 (it eats 1, grows to 3, then eats 3). Fish 1 is not. Hence, this arrangement has 2 champions. The biggest fish is always a champion, but often many others are too.

Your goal: Find an arrangement of the fish 1,2,…,100 with only 30 champions.

A Bonus "*" will be given for finding how many of the 20! arrangements of 1,2,…,20 have the smallest possible number of champions.

来源: IBM Research Blog · research.ibm.com