上一页 1 ··· 5 6 7 8 9 10 11 下一页
摘要: 题目: Problem Description 虽然草儿是个路痴(就是在杭电待了一年多,居然还会在校园里迷路的人,汗~),但是草儿仍然很喜欢旅行,因为在旅途中 会遇见很多人(白马王子,^0^),很多事,还能丰富自己的阅历,还可以看美丽的风景……草儿想去很多地方,她想要去东京铁塔看夜景,去威尼斯看电影 阅读全文
posted @ 2019-07-07 16:22 Anzer 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 题目: You are given an integer nn. You can perform any of the following operations with this number an arbitrary (possibly, zero) number of times: For e 阅读全文
posted @ 2019-07-07 15:07 Anzer 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 题目: 做作业的时候,邻座的小盆友问你:“五乘以七等于多少?”你应该不失礼貌地围笑着告诉他:“五十三。”本题就要求你,对任何一对给定的正整数,倒着输出它们的乘积。 输入格式: 输入在第一行给出两个不超过 1000 的正整数 A 和 B,其间以空格分隔。 输出格式: 在一行中倒着输出 A 和 B 的乘 阅读全文
posted @ 2019-07-07 14:53 Anzer 阅读(383) 评论(0) 推荐(0) 编辑
摘要: 感觉这篇文章总结的挺好的,转自https://www.cnblogs.com/lisijie/p/7694791.html int parent[MAX_N] //父节点 int rank[MAX_N] //树的高度 初始化: 查询根节点: 合并集合: 路径压缩: ①递归: ②非递归: 阅读全文
posted @ 2019-07-07 00:47 Anzer 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 题目: Problem Description Today is Ignatius' birthday. He invites a lot of friends. Now it's dinner time. Ignatius wants to know how many tables he need 阅读全文
posted @ 2019-07-06 20:32 Anzer 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 题目: Problem Description Mr Wang wants some boys to help him with a project. Because the project is rather complex, the more boys come, the better it w 阅读全文
posted @ 2019-07-06 18:41 Anzer 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 题目: Description The Head Elder of the tropical island of Lagrishan has a problem. A burst of foreign aid money was spent on extra roads between villag 阅读全文
posted @ 2019-07-06 16:11 Anzer 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 题目: Problem Description There are N villages, which are numbered from 1 to N, and you should build some roads such that every two villages can connect 阅读全文
posted @ 2019-07-06 13:38 Anzer 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 题目: Problem Description 上次Gardon的迷宫城堡小希玩了很久(见Problem B),现在她也想设计一个迷宫让Gardon来走。但是她设计迷宫的思路不一样,首先她认为所有的通道都应该是双向连通的,就是说如果有一个通道连通了房间A和B,那么既可以通过它从房间A走到房间B,也可 阅读全文
posted @ 2019-07-06 13:20 Anzer 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 题目: Problem Description 某省调查乡村交通状况,得到的统计表中列出了任意两村庄间的距离。省政府“畅通工程”的目标是使全省任何两个村庄间都可以实现公路交通(但不一定有直接的公路相连,只要能间接通过公路可达即可),并要求铺设的公路总长度为最小。请计算最小的公路总长度。 Input 阅读全文
posted @ 2019-07-05 22:02 Anzer 阅读(130) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 下一页