摘要: 题目描述听说彩虹有七种颜色?一维坐标轴上n条线段,每条线段左端点l,右端点r,颜色为c,从中选m种颜色的互不接触的线段,每种颜色可选多条,所选线段的总长度最长为多少?输入描述:第一行2个整数 n, m;接下来n行,每行3个整数l, r, c。输出描述:一个整数,表示所选线段的最长的总长度;若选不了, 阅读全文
posted @ 2018-10-15 23:37 楼主好菜啊 阅读(354) 评论(0) 推荐(0) 编辑
摘要: You are playing some computer game. One of its levels puts you in a maze consisting of n lines, each of which contains m cells. Each cell either is fr 阅读全文
posted @ 2018-10-15 18:53 楼主好菜啊 阅读(304) 评论(0) 推荐(0) 编辑