摘要: 题目背景 pid=3437 题目描述 星云中有n颗行星,每颗行星的位置是(x,y,z)。每次可以消除一个面(即x,y或z坐标相等)的行星,但是由于时间有限,求消除这些行星的最少次数。 输入输出格式 输入格式: 第1行为小行星个数n,第2行至第n+1行为xi, yi, zi,描述第i个小行星所在的位置 阅读全文
posted @ 2017-02-27 20:27 IIIIIIIIIU 阅读(320) 评论(0) 推荐(0)
摘要: 题目描述 Farmer John always wants his cows to have enough water and thus has made a map of the N (1 <= N <= 700) water pipes on the farm that connect the 阅读全文
posted @ 2017-02-27 19:55 IIIIIIIIIU 阅读(186) 评论(0) 推荐(0)