登录
首页 » 数据结构 » 10名海盗抢得了窖藏的100块金子,并打算瓜分 这些战利品。这是一些讲民主的海盗(当然是他们自己特有的民主),他们的习惯 是按下面的方式进行分配:最...

10名海盗抢得了窖藏的100块金子,并打算瓜分 这些战利品。这是一些讲民主的海盗(当然是他们自己特有的民主),他们的习惯 是按下面的方式进行分配:最...

于 2023-06-24 发布 文件大小:3.75 kB
0 158
下载积分: 2 下载次数: 1

代码说明:

10名海盗抢得了窖藏的100块金子,并打算瓜分 这些战利品。这是一些讲民主的海盗(当然是他们自己特有的民主),他们的习惯 是按下面的方式进行分配:最厉害的一名海盗提出分配方案,然后所有的海盗(包 括提出方案者本人)就此方案进行表决。如果50%或更多的海盗赞同此方案,此方 案就获得通过并据此分配战利品。否则提出方案的海盗将被扔到海里,然后下提名 最厉害的海盗又重复上述过程-10 pirates seize a cache of 100 gold, and plan to divide up these spoils of war. This is the democracy of some pirates (of course it was their own unique democracy), their habits are based on the following manner allocation : one of the most powerful pirate proposed distribution plan, and then all the pirates (including the proposal himself) on this program for a vote. If 50% or more of the pirates agreed to this program, this program was adopted and on the allocation of spoils of war. Otherwise, the proposals will be pirates thrown into the sea, and then nominate the most serious piracy repeated this process

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 可以实现两个大整(不限位)相加减! 在C++中,加减法的两个必须在系统规定内,本程序突破了这一界限!...
    可以实现两个大整数(不限数位)相加减! 在C++中,加减法的两个数必须在系统规定内,本程序突破了这一界限!-can achieve two large integers (Open-digit) is modified! In C++, and subtract the number two must be within the system, the process broke the limits!
    2022-03-25 05:48:53下载
    积分:1
  • delphi控件 一般开发人员都用,使用的库控件
    delphi控件 一般开发人员都用,使用的数据库控件-general controls delphi developers are using the database control
    2022-03-19 19:16:02下载
    积分:1
  • dbcmp-库内容比较工具
    dbcmp是一个数据库内容比较工具。用于比较数据库的两个表数据之间的差异,并通过WEB的形式高亮显示。dbcmp运行于Linux/Unix平台,目前只支持Oracle.运行前用户要配置dbcmp.cfg、dbcmp.tbl、dbcmp.xcols文件. 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
    2023-06-27 22:45:03下载
    积分:1
  • vb编的医院管理系统,需要的可以下载,有兴趣自行习惯
    vb编的医院管理系统,需要的可以下载,有兴趣自行习惯-vb series of the hospital management system, the need to be downloaded, are interested in their own habits! !
    2022-02-07 07:45:50下载
    积分:1
  • OJ 1100 North online title, the success of the use of automata to solve the clas...
    北大在线OJ 1100题,运用自动机成功求解方程式的经典例子,此程序可作为自动机模板-OJ 1100 North online title, the success of the use of automata to solve the classic example of the equation, this procedure can be used as a template automaton
    2022-11-09 02:40:03下载
    积分:1
  • 登录脚本,PHP连接库的使用。
    login sript .PHP usefull to connect DB
    2022-12-11 00:25:03下载
    积分:1
  • ADO直接读取库的编程实例
    ADO直接读取数据库的编程实例-read directly ADO database programming examples
    2022-03-29 12:09:20下载
    积分:1
  • 平滑转弯走迷宫
    顺滑转弯,可以极大程度上减少电脑鼠在迷宫转弯时的损耗时间。本设计讨论电脑鼠底层驱动算法中有关电脑鼠 转弯部分(90度转弯)的改进算法,该方法改进了以往在电脑鼠转弯过程中首先对左右两个电机同时制动, 然后一个电机正向转动,一个反向转动,从而形成电脑鼠转弯过程的传统方法。 本设计所用的方法是在转弯过程中电机不停转,在转弯过程中让一个电机处于减速状态, 另一个处于加速状态(但不停机),然后调整步进电机的步数,使两个电机同时前向转动, 接着调整步进电机在转弯时的步数,待转弯结束后再使电机处于加速状态,并进入前进状态
    2022-01-30 15:52:34下载
    积分:1
  • HANOR data structure is that when the students most headaches, here is a solutio...
    汉诺塔是初学数据结构的同学最头疼的问题,这里是一个用递归函数解决汉诺塔问题的经典c语言程序,里面有代码和执行文件。-HANOR data structure is that when the students most headaches, here is a solution using a recursive function HANOR a classic c language program, which has code and the implementation document.
    2022-04-28 18:25:21下载
    积分:1
  • 图书管理系统
    这个系统是同学给我的,主要是要我熟悉Visual Studio 2008 与SQL Server 2008 的结合使用,她说这个系统比较简单也适合初学者使用,我从中学到了很多东西,希望有的同学也能用到这个系统,能简单使用Visual Studio 2008 。
    2023-08-13 20:50:02下载
    积分:1
  • 696518资源总数
  • 106161会员总数
  • 5今日下载