uva 10654 The Uxuhul Voting System(DP+记忆化)

本文介绍了古代Uxuhul文明的一种投票系统,其中包含三个议题,每位祭司按年龄顺序投票改变议题结果。祭司们根据偏好顺序选择投票,以最大化利益。任务是根据祭司的偏好恢复投票结果。输入包含投票轮数和每位祭司的偏好顺序,输出是每个议题的最终结果('Y'或'N')。
摘要由CSDN通过智能技术生成

Problem D
The Uxuhul Voting System
Input:
standard input
Output: standard output
Time Limit: 1 second

One of the world's first civilizations was that of the ancient Uxuhul indians, in the jungles of Central America. The Uxuhul culture flourished for almost a thousand years, with its golden era around 3200 BC. Each year high priests, representing different parts of the realm, gathered in the capital to vote on important matters. There were always exactly three issues to vote on, and each issue was a simple yes/no question. The three issues were all decided in one single voting round, in the following manner:

All the priests would gather in a large room, with a table in the centre. On the table lie three flat stones, each with one white, and one black side. Each stone represented an issue, with the black side up symbolising the outcome

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值