-
10名海盗抢得了窖藏的100块金子,并打算瓜分
这些战利品。这是一些讲民主的海盗(当然是他们自己特有的民主),他们的习惯
是按下面的方式进行分配:最...
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
- 2023-06-24 15:35:03下载
- 积分:1
-
算法类,二进制搜索的源代码,算法导论上的
算法类,二进制搜索的源代码,算法导论上的-Algorithm-type, binary search of the source code, algorithm Introduction to the
- 2022-11-29 04:00:03下载
- 积分:1
-
调试顺序结构栈的基本操作(清华大学出版社数据结构C语言版书本P44)...
调试顺序结构栈的基本操作(清华大学出版社数据结构C语言版书本P44)-Debug stack order of the structure of the basic operations (Tsinghua University Press Data Structures C language version of the book P44)
- 2023-08-27 19:10:03下载
- 积分:1
-
类模板,助于参考及编写代码,代码以数据结构值的排序方式及链表操作为主....
类模板,助于参考及编写代码,代码以数据结构值的排序方式及链表操作为主.
-Class template, reference and help to write code, the code value to the data structure and linked list Sort-based operation.
- 2022-03-05 19:39:25下载
- 积分:1
-
此代码是一个数据结构课程设计――飞机订票系统.
此代码是一个数据结构课程设计――飞机订票系统.-this code is a data structure course design-- aircraft booking system.
- 2023-07-03 12:25:03下载
- 积分:1
-
C语言学习,由一个多项式抓准备,主要的检查方法…
学习C语言时,编写的一个多项式刮号检查程序
主要用栈实现的。-C language study, prepared by a polynomial scratching, the main inspection procedures Stack realized.
- 2022-03-24 20:03:55下载
- 积分:1
-
题目:设有一航班售票系统,要求完成以下功能:
1)假设该民航有若干航班,要求实现增加航班和取消某个航班的功能。
2)查询:根据用户提出的终到站查询航班号...
题目:设有一航班售票系统,要求完成以下功能:
1)假设该民航有若干航班,要求实现增加航班和取消某个航班的功能。
2)查询:根据用户提出的终到站查询航班号、售票情况等航班信息;也可根据航班号,列出该航班已订票的乘客名单。
3)订票:根据航班号为客户订票,如该航班有余票,则为客户订票;如该航班已满员,则显示相应信息。
4)退票:按乘客要求退出已预定的机票。
-Topic: First flight with the ticketing system, required to complete the following functions: 1) It is assumed that the Civil Aviation have a number of flights, calls for increased flights and cancellation of a flight functions. 2) query: Based on user queries raised by the end of the arrival flight number, booking flight information, etc. also available under the flight number, listed in the flight
- 2022-03-15 20:32:52下载
- 积分:1
-
《数据结构与算法》讲义,第1章 概论。
“十一五”国家级规划教材。张铭,王腾蛟,赵海燕,《数据结构与算法》,高教社,2008. 6。...
《数据结构与算法》讲义,第1章 概论。
“十一五”国家级规划教材。张铭,王腾蛟,赵海燕,《数据结构与算法》,高教社,2008. 6。
-Chap1 Overview
- 2022-07-06 09:06:25下载
- 积分:1
-
本代码用贪心算法实现会议安排的最佳顺序,其目标是使得能够安排的会议数量最多,是贪心算法的典型应用...
本代码用贪心算法实现会议安排的最佳顺序,其目标是使得能够安排的会议数量最多,是贪心算法的典型应用-code with the greedy algorithm to achieve the best arrangements for the order, its goal is to arrange the largest number of meetings, the greedy algorithm is a typical application
- 2022-03-13 15:53:40下载
- 积分:1
-
利用栈和队列完成停车场的管理,数据结构的实习题目,并完成选做内容...
利用栈和队列完成停车场的管理,数据结构的实习题目,并完成选做内容-use stack and queue complete parking management, and data structure of the internship topics, and complete the election to content
- 2022-05-13 11:31:35下载
- 积分:1