Loading

上一页 1 ··· 54 55 56 57 58 59 60 61 62 ··· 75 下一页
摘要: Ichihime is the current priestess of the Mahjong Soul Temple. She claims to be human, despite her cat ears. These days the temple is holding a math co 阅读全文
posted @ 2020-04-16 09:59 脂环 阅读(440) 评论(0) 推荐(0)
摘要: 题目描述 设有一棵二叉树,如图: 其中,圈中的数字表示结点中居民的人口。圈边上数字表示结点编号,现在要求在某个结点上建立一个医院,使所有居民所走的路程之和为最小,同时约定,相邻接点之间的距离为 111。如上图中,若医院建在1 处,则距离和 =4+12+2×20+2×40=136=4+12+2\tim 阅读全文
posted @ 2020-04-15 21:36 脂环 阅读(490) 评论(0) 推荐(1)
摘要: 题目描述 给出每个节点的两个儿子节点,建立一棵二叉树(根节点为 111),如果是叶子节点,则输入0 0。建好树后希望知道这棵二叉树的深度。二叉树的深度是指从根节点到叶子结点时,最多经过了几层。 最多有 10610^6106 个结点。 输入格式 无 输出格式 无 输入输出样例 输入 #1 复制 7 2 阅读全文
posted @ 2020-04-15 16:34 脂环 阅读(435) 评论(0) 推荐(0)
摘要: 实验六:类和对象(二)实验目的: (1)掌握类的构造函数和析构函数的使用方法 (2)掌握对象数组和对象指针的使用方法实验内容: 重新编写实验五中的时间类Time,增加3个构造函数:缺省 构造函数、带3个参数的构造函数以及拷贝构造函数。要求: (1)利用不同的构造函数创建新对象; (2)利用new和d 阅读全文
posted @ 2020-04-15 15:56 脂环 阅读(365) 评论(0) 推荐(0)
摘要: 题目描述 The only difference between easy and hard versions is constraints. You are given a sequence a a a consisting of n n n positive integers. Let's de 阅读全文
posted @ 2020-04-14 18:34 脂环 阅读(399) 评论(0) 推荐(0)
摘要: 题目描述 You are given a correct solution of the sudoku puzzle. If you don't know what is the sudoku, you can read about it here. The picture showing the 阅读全文
posted @ 2020-04-14 11:52 脂环 阅读(402) 评论(0) 推荐(0)
摘要: 题目描述 You have n n n students under your control and you have to compose exactly two teams consisting of some subset of your students. Each student had 阅读全文
posted @ 2020-04-14 09:32 脂环 阅读(465) 评论(0) 推荐(0)
摘要: 题目描述 You are given three positive integers n n n , a a a and b b b . You have to construct a string s s s of length n n n consisting of lowercase Lati 阅读全文
posted @ 2020-04-14 08:16 脂环 阅读(363) 评论(0) 推荐(0)
摘要: 题目描述 There are two sisters Alice and Betty. You have n n n candies. You want to distribute these n n n candies between two sisters in such a way that: 阅读全文
posted @ 2020-04-14 08:11 脂环 阅读(621) 评论(0) 推荐(0)
摘要: 在完成了分配任务之后,西部314来到了楼兰古城的西部。 相传很久以前这片土地上(比楼兰古城还早)生活着两个部落,一个部落崇拜尖刀(‘V’),一个部落崇拜铁锹(‘∧’),他们分别用V和∧的形状来代表各自部落的图腾。 西部314在楼兰古城的下面发现了一幅巨大的壁画,壁画上被标记出了N个点,经测量发现这N 阅读全文
posted @ 2020-04-13 21:21 脂环 阅读(224) 评论(0) 推荐(0)
上一页 1 ··· 54 55 56 57 58 59 60 61 62 ··· 75 下一页