摘要:
Problem Description You will be given two sets of integers. Let's call them set A and set B. Set A contains n elements and set ... 阅读全文
posted @ 2022-09-20 22:59
老程序员111
阅读(32)
评论(0)
推荐(0)
摘要:
Problem Description In a computer network a link L, which interconnects two servers, is considered critical if there are at lea... 阅读全文
posted @ 2022-09-20 22:59
老程序员111
阅读(34)
评论(0)
推荐(0)
摘要:
Problem Description ACboy很喜欢玩一种战略游戏,在一个地图上,有N座城堡,每座城堡都有一定的宝物,在每次游戏中ACboy允许攻克M个城堡并获得里面的宝物。但由于地理位置原因,有些城堡不能直接攻克,要攻克这些城堡必须先攻克其他某一个... 阅读全文
posted @ 2022-09-20 22:59
老程序员111
阅读(140)
评论(0)
推荐(0)
摘要:
Problem Description Given a graph G(V, E), a clique is a sub-graph g(v, e), so that for all vertex pairs v1, v2 in v, there exi... 阅读全文
posted @ 2022-09-20 22:59
老程序员111
阅读(33)
评论(0)
推荐(0)
摘要:
【问题描述】 当 G′ 是图 G 的子图,且 G′ 是关于 V′ 的完全图时,子图 G' 为图 G 的团;当 G' 是团,且不是其他团的子集时,G' 为图 G 的极大团;当 G' 是极大团时,且点数最多,G' 为图 G 最大团 当 G′ 中所有点不相邻,最大... 阅读全文
posted @ 2022-09-20 22:59
老程序员111
阅读(826)
评论(0)
推荐(0)
摘要:
Problem Description Betty owns a lot of ponds, some of them are connected with other ponds by pipes, and there will not be more... 阅读全文
posted @ 2022-09-20 22:59
老程序员111
阅读(296)
评论(0)
推荐(0)
摘要:
Problem Description A bit is a binary digit, taking a logical value of either 1 or 0 (also referred to as "true" or "false" res... 阅读全文
posted @ 2022-09-20 22:59
老程序员111
阅读(25)
评论(0)
推荐(0)
摘要:
Problem Description Little jay really hates to deal with string. But moondy likes it very much, and she's so mischievous that s... 阅读全文
posted @ 2022-09-20 22:58
老程序员111
阅读(91)
评论(0)
推荐(0)
摘要:
【实现类】 单链表的基本思想就是用指针表示结点之间的逻辑关系,因此要正确的对指针变量、指针、指针所指结点、结点的值进行区分。 设 p 是一个指针变量,则 p 的值是一个指针,若指针 p 指向某个 Node 类型的结点,则该结点用 *p 来表示,并称 *p 为结... 阅读全文
posted @ 2022-09-20 22:58
老程序员111
阅读(156)
评论(0)
推荐(0)
摘要:
【实现类】 const int maxSize=100;//存储空间初始分配量template class SeqList{private: T data[maxSize];//存放数据元素的数组 int length;//顺序表的长度public... 阅读全文
posted @ 2022-09-20 22:58
老程序员111
阅读(110)
评论(0)
推荐(0)

浙公网安备 33010602011771号