2017 Benelux Algorithm Programming Contest (BAPC 17) K. King of the Waves

这篇博客介绍了如何在一场国王山锦标赛中操纵比赛,确保名为Henk的参赛者赢得比赛。比赛组织者知道每个参与者之间的胜负关系,并且可以决定开始者和挑战顺序。博客提供了输入输出描述,解释了如何根据给定的胜利矩阵来制定一个比赛计划,使得Henk最终获胜。如果无法确保Henk获胜,则输出“impossible”。解决方案包括遍历矩阵以找到能让Henk胜利的挑战顺序。
摘要由CSDN通过智能技术生成

题目链接

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值