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

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

于 2023-06-24 发布 文件大小:3.75 kB
0 194
下载积分: 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 个回复

  • 停车场问题
    数据结构停车场问题-data structure parking problems
    2022-03-04 11:59:35下载
    积分:1
  • 完全由C语言实现的图的相关操作,就是清华大学 书里的图的所有算法的实现...
    完全由C语言实现的图的相关操作,就是清华大学 数据结构书里的图的所有算法的实现-Solely by the C language implementation of related plans to operate, that is, Tsinghua University, the data structure of the book" s map of the implementation of all algorithms
    2023-04-22 07:25:03下载
    积分:1
  • 发送TEXT短信模块
    发送短信模块源代码!PCON &= 0x7F; //波特率不倍速 SCON = 0x50; //8位数据,可变波特率 AUXR &= 0xBF; //定时器1时钟为Fosc/12,即12T AUXR &= 0xFE; //串口1选择定时器1为波特率发生器 TMOD &= 0x0F; //清除定时器1模式位 TMOD |= 0x20; //设定定时器1为8位自动重装方式 TL1 = 0xFD;  //设定定时初值 TH1 = 0xFD;  //设定定时器重装值 ET1 = 0;    //禁止定时器1中断 TR1 = 1;    //启动定时器1   ES=1;  //开串口中断
    2023-06-13 13:05:04下载
    积分:1
  • Exhaustive Cipher/In many cases we need to exhaustive combinations of algorithms...
    穷举密码算法 /在许多情况下我们需要穷举组合的算法,比如密码词典。 //这个算法的关键是密码下标进位的问题。 //另外本例子中的写文件语句效率比较低,为了降低算法复杂度没有优化。 //如果要提高写文件的效率,可以使用缓冲区,分批写入。-Exhaustive Cipher/In many cases we need to exhaustive combinations of algorithms, such as the password dictionary.// This algorithm, the key is password subscript binary problems.// Another example of this statement to write a document relatively low efficiency, in order to reduce the algorithm complexity is not optimized.// If you want to improve the efficiency of writing documents, you can use the buffer, write in batches.
    2023-09-07 14:55:03下载
    积分:1
  • simulated people Maze, the main general operating procedures, data structure
    模拟人走迷宫,主要实现一般操作的程序,数据结构-simulated people Maze, the main general operating procedures, data structure
    2022-02-01 07:13:55下载
    积分:1
  • 图书管理程序,b
    图书管理程序,b-tree,c++语言完成。程序非常的棒-library management procedures, b-tree, c complete language. Procedures for the wand! !
    2022-08-21 03:02:17下载
    积分:1
  • 基本的 Crud
    与 html、 php、 javascript 和数据库 mysql 这个基本的 CRUD。您可以输入供应商、 物料和交易秩序与获取数据从数据库选择选项 !。学习的 let !!!我还没到 attchement 插入数据库。你只是导入数据库你们:)
    2023-03-31 08:15:03下载
    积分:1
  • During the course design should be based on the actual situation in the main, on...
    在本次课程设计中,应该以实际情况为主,在此基础上实现对实际情况的抽象,并设计和建立数据库,完成应用程序界面的人性化地编写。 -During the course design should be based on the actual situation in the main, on the basis of the realization of the abstract of the actual situation and the design and establishment of databases, application programming interfaces to complete the preparation of humanity.
    2022-01-26 05:47:05下载
    积分:1
  • CAI系统
    数据结构CAI系统-用C语言开发的教学辅助系统。-data structure CAI system-C language teaching aids development of the system.
    2022-01-21 02:29:46下载
    积分:1
  • 清华大学严蔚敏老师《习题集(C语言版)》的实验题1.4,长整运算,已扩充了乘法和除法...
    清华大学严蔚敏老师《数据结构习题集(C语言版)》的实验题1.4,长整数运算,已扩充了乘法和除法-Tsinghua University, Yan Wei-Min teacher
    2022-12-25 05:35:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载