上一页 1 ··· 3 4 5 6 7
摘要: 小西有一条很长的彩带,彩带上挂着各式各样的彩珠。已知彩珠有N个,分为K种。简单的说,可以将彩带考虑为x轴,每一个彩珠有一个对应的坐标(即位置)。某些坐标上可以没有彩珠,但多个彩珠也可以出现在同一个位置上。 小布生日快到了,于是小西打算剪一段彩带送给小布。为了让礼物彩带足够漂亮,小西希望这一段彩带中能 阅读全文
posted @ 2019-07-06 15:43 coolwx 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 巨坑无比的题目,有人连样例都过不去还真给他过了,真的坑,这题就姑且看一下,反正很奇怪的贪心,但是不能用pair,因为不能保证全部大于,巨坑 阅读全文
posted @ 2019-07-04 00:17 coolwx 阅读(115) 评论(0) 推荐(0) 编辑
摘要: The Power Cube is used as a stash of Exotic Power. There are nn cities numbered 1,2,…,n1,2,…,n where allowed to trade it. The trading price of the Pow 阅读全文
posted @ 2019-07-03 10:07 coolwx 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 大家一定觉的运动以后喝可乐是一件很惬意的事情,但是seeyou却不这么认为。因为每次当seeyou买了可乐以后,阿牛就要求和seeyou一起分享这一瓶可乐,而且一定要喝的和seeyou一样多。但seeyou的手中只有两个杯子,它们的容量分别是N 毫升和M 毫升 可乐的体积为S (S<101)毫升 ( 阅读全文
posted @ 2019-07-03 00:45 coolwx 阅读(124) 评论(0) 推荐(0) 编辑
摘要: You are given a rooted tree with n vertices. The vertices are numbered from 1 to n, the root is the vertex number 1. Each vertex has a color, let's de 阅读全文
posted @ 2019-07-02 23:15 coolwx 阅读(209) 评论(0) 推荐(0) 编辑
摘要: A ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separately, and the sum of numbers in two adjacen 阅读全文
posted @ 2019-07-02 22:24 coolwx 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 题目: Michael喜欢滑雪百这并不奇怪, 因为滑雪的确很刺激。可是为了获得速度,滑的区域必须向下倾斜,而且当你滑到坡底,你不得不再次走上坡或者等待升降机来载你。Michael想知道载一个区域中最长底滑坡。区域由一个二维数组给出。数组的每个数字代表点的高度。下面是一个例子 1 2 3 4 5 16 阅读全文
posted @ 2019-07-02 22:22 coolwx 阅读(387) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7