题目链接
K King of the Waves
Picture by JD Lasica via Flickr.
You are organising a king of the hill tournament, the Buenos Aires
Paddleboarding Competition (BAPC), with n participants. In a
king of the hill tournament, one person starts as a “king” and is
then challenged by another person, the winning person becomes
the new king. This is repeated until all participants have challenged
exactly once (except for the starting person). In a paddleboarding
match, there are no draws. The person which ends up as
king, wins the tournament. Since you are the organiser, you get to
choose the starting person and the order in which they challenge
the king.
Someone is offering you a substantial amount of money in case
one of the participants, Henk, ends up winning the tournament. You happen to know, for
any two