上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页
摘要: L2-004 这是二叉搜索树吗? 一棵二叉搜索树可被递归地定义为具有下列性质的二叉树:对于任一结点, • 其左子树中所有结点的键值小于该结点的键值; • 其右子树中所有结点的键值大于等于该结点的键值; • 其左右子树都是二叉搜索树。 所谓二叉搜索树的“镜像”,即将所有结点的左右子树对换位置后所得到的 阅读全文
posted @ 2023-04-17 00:43 MarisaMagic 阅读(23) 评论(0) 推荐(0) 编辑
摘要: L2-003 月饼 月饼是中国人在中秋佳节时吃的一种传统食品,不同地区有许多不同风味的月饼。现给定所有种类月饼的库存量、总售价、以及市场的最大需求量,请你计算可以获得的最大收益是多少。 注意:销售时允许取出一部分库存。样例给出的情形是这样的:假如我们有 3 种月饼,其库存量分别为 18、15、10 阅读全文
posted @ 2023-04-17 00:13 MarisaMagic 阅读(22) 评论(0) 推荐(0) 编辑
摘要: L2-001 紧急救援 作为一个城市的应急救援队伍的负责人,你有一张特殊的全国地图。在地图上显示有多个分散的城市和一些连接城市的快速道路。每个城市的救援队数量和每一条连接两个城市的快速道路长度都标在地图上。当其他城市有紧急求助电话给你的时候,你的任务是带领你的救援队尽快赶往事发地,同时,一路上召集尽 阅读全文
posted @ 2023-04-16 22:59 MarisaMagic 阅读(99) 评论(0) 推荐(1) 编辑
摘要: Find a way Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Problem Description Pass a year learning in Hangzhou, yife 阅读全文
posted @ 2023-04-16 00:49 MarisaMagic 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 非常可乐 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Problem Description 大家一定觉的运动以后喝可乐是一件很惬意的事情,但是seeyou却不这么认为。因为每次当s 阅读全文
posted @ 2023-04-16 00:36 MarisaMagic 阅读(10) 评论(0) 推荐(0) 编辑
摘要: Oil Deposits Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Problem Description The GeoSurvComp geologic survey comp 阅读全文
posted @ 2023-04-15 20:35 MarisaMagic 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 迷宫问题 Time Limit: 1000MS Memory Limit: 65536K Description 定义一个二维数组: int maze[5][5] = { 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0 阅读全文
posted @ 2023-04-15 20:28 MarisaMagic 阅读(28) 评论(0) 推荐(0) 编辑
摘要: Fire! Description Joe works in a maze. Unfortunately, portions of the maze have caught on fire, and the owner of the maze neglected to create a fire e 阅读全文
posted @ 2023-04-15 20:05 MarisaMagic 阅读(17) 评论(0) 推荐(0) 编辑
摘要: Fire Game Description Fat brother and Maze are playing a kind of special (hentai) game on an N*M board (N rows, M columns). At the beginning, each gri 阅读全文
posted @ 2023-04-15 19:34 MarisaMagic 阅读(11) 评论(0) 推荐(0) 编辑
摘要: Pots Time Limit: 1000MS Memory Limit: 65536K Description You are given two pots, having the volume of A and B liters respectively. The following opera 阅读全文
posted @ 2023-04-15 18:55 MarisaMagic 阅读(18) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页