搜索资源列表
accepted1
- 解决时钟问题,acm竞赛题 A weird clock marked from 0 to 59 has only a minute hand. It won t move until a special coin is thrown into its box. There are different kinds of coins as your options. However once you make your choice, you cannot use any other kind.
training
- 某企业将挑选一批新员工进行培训,遵循以下规则: 将所有员工排成1个圈,从12点位置开始编号为1,逆时钟方向编号到N,第N号员工在第1号的左手边 两位培训官开始选择员工,培训官甲从1号开始逆时钟方向数,数到第k号员工停下;培训官乙从N号开始顺时钟方向数,数到第m号员工停下 被选中的第k号和第m号员工不是同一人,两人同时送往制造培训 被选中的第k号和第m号员工是同一人,将一人送往检测培训 接着继续往下数,培训官甲同样数到k就停止,培训官乙同样数到m就停止,重复上述的选择 输入
8
- This program identifies the best poker hand made up of 5 cards from the 7 provided. These cards are - or space separated and look like this: 3S-9D 5S-6D-TH-2S-KC. The first letter of each pair is the value which is one of 2,3,4,5,6,7,8,9,T,J,Q,K, A.
zerone
- 【题目描述】 Adam 和Eve 被赶出伊甸园后,盖起了四面高墙。高墙上写着n 行01 串。两人无事可做,于是 开始就这些01 串做如下博弈: 1. Adam 进行第1 手,此后双方轮流操作。 2. 第 i 手的操作者,可以且必须在0 和1 之间选择,并相应地抹掉某些串。具体地,若选择 0(1),则抹掉第i 位为0(1)的所有串。长度短于i 的串,也须抹掉。 3. 一方操作之后若将所有串都抹掉了,则判该方失败。 若两人皆明智,则胜负必然确定。不幸的是他俩
rbtree
- 红黑树是一种自平衡二叉查找树,是在计算机科学中用到的一种数据结构,典型的用途是实现关联数组。-AVL trees are actually easier to implement than RB trees because there are fewer cases. And AVL trees require O(1) rotations on an insertion, whereas red-black trees require O(lg n). In practice, the
dzy
- 一个数据结构的大作业,作为新手来看看,希望可以通过-A data structure of the large operations, as a green hand to look at the hope of passing through
123
- 约瑟夫问题 编号为1,2,3,…,n的n个人按顺序针方向围坐一张圆桌旁,每个人手中持有 一个密码(正整数)。首先输入一个正整数作为报数上限值m,然后,从第一个人开始按顺序针方向自1开始顺序报数,报到m的人离开桌子,并将他手中的密码作为新的m值,从顺序针方向的下一个就坐在桌旁的人开始重新从1报数,如此下去,直至所有人全部离开桌旁为止。-Joseph issues numbered 1,2,3, ..., n of the n individuals in accordance with t
AutoPoke
- 斗地主*程序,牌面分析与余牌计算,还有各种更高效的*算法 斗地主*程序,牌面分析与余牌计算,还有各种更高效的*算法-Doude Zhu plug-in program analysis and hand over license terms, there are a variety of more efficient algorithms Doude Zhu plug-in plug-in program analysis and hand over license terms, t
maze
- 代码实现了电脑鼠走迷宫,利用右手算法,快速并且准确-Code of the computer mouse maze, using the right hand algorithm, fast and accurate
shizhong
- 此程序主要是让读者熟悉c语言图形模式下的编程,了解系统绘图及数据结构的知识,此重难点是 时 分 秒针坐标值的计算和时钟指针的运行控制,有兴趣的话,可让程序支持鼠标操作,-This program is designed to allow the reader familiar with the c language graphics mode programming, understanding of the system mapping and data structure knowledge
maze
- 实现迷宫随机生成和手工生成,并找到最短路径后输出。-Achieve randomly generated and hand-generated maze and find the shortest path output.
shu_bianli
- 该程序实在mfc下实现二叉树的遍历(数据结构知识),一方面涉及数据结构知识,另一方面涉及mfc知识,功能较全。-The program is to achieve binary tree traversal mfc (data structure knowledge), on the one hand knowledge of data structures involved, the other involving mfc knowledge, capabilities than the wh
shujujiegou
- 五种排序算法的比较,华中科技大学计算机学院数据结构课设。可以用来交作业-Five kinds of sorting algorithm, Computer Science, Huazhong University of Science and Technology set up data structures class. Can be used to hand in papers
yinhangjiasuanfa
- 蛮好的一个算法自己改进过,适合于交作业用的啊-A fine improvement over their algorithm, suitable for hand in papers with the ah
yiyuan
- 能够完成两个多项式的相加、相减,并将结果输入; 在上交资料中请写明:存储结构、多项式相加的基本过程的算法(可以使用程序流程图) 、源程序、测试数据和结果、算法的时间复杂度、另外可以提出算法的改进方法;-Able to complete two polynomial addition, subtraction, and the results input in hand over data, please specify: storage structure, the basic pro
1
- 编写程序将一副牌随机发给4个玩家,对玩家手中的牌按花色和点数进行排序后显示发牌结果。-Programming will be a card randomly distributed to four players, the player' s hand sorted by color and number of points displayed after licensing the results.
Program
- 刚好手头的项目需要为客户提供一个路线指引功能的小模块,需要自动计算图形上两点间的最短路径。工作之余想着这个算法还是比较的常用,就总结了一下,与大家共享。-Just the project at hand to provide customers with a route guidance function module to automatically calculate the shortest path between two points on the graph. Spare time
tu
- 已编译能运行,全部手写实现,图的存储和遍历-Compiled to run, all hand-written to achieve the storage and traversal of the graph
guaiyizhong
- 怪异钟 一个钟只有分针(仅能表示0~59分),它自己不会走,只有投入一种硬币,它才会走。硬币上标有一个数字d,则该钟向前走当前时间s(分钟)的d倍,例如当时钟分针为45分钟时(s=45),投入d=2的硬币,该钟将向前走45*2=90分钟,指向15分。现在输入时钟的当前分钟,和硬币上的数字d,问最少投入多少个这样的硬币后指针指向0点,如果永远不可能指向0点,则输出impossible。 -Weird clock a clock the minute hand only (can only
Hand-in-Hand
- /*题意:判断两幅图是否同构 图中即判断图中环和链的个数是否相同 环和链是否一一相对应 利用并查集 一个集合中若人数num[]和拉手对手p[]相等 则为环,num[]==p[]+1则为链*/-/* The meaning of problems: to determine whether the two images with a composition that judge whether each of the corresponding figure rings and chains
