It is just a mining spanning tree ( 最小生成树 ) problem, what makes you a little difficult is that you are in a 3D space.
Time Limit | $1$ 秒/Second(s) | Memory Limit | $512$ 兆字节/Megabyte(s) |
提交总数 | $22$ | 正确数量 | $22$ | "
裁判形式 | 标准裁判/Standard Judge | 我的状态 | 尚未尝试 |
难度 | 分类标签 | 数学 图论 并查集 |
It is just a mining spanning tree ( 最小生成树 ) problem, what makes you a little difficult is that you are in a 3D space.
For each test case, output a line with the answer, which should accurately rounded to two decimals .
2
2
1 1 0
2 2 0
3
1 2 3
0 0 0
1 1 1
1.41
3.97
本题记录 | 用 户(点击查看用户) | 运行号(点击购买题解) | 时 间 |
---|---|---|---|
算法最快[$0 $ms] | AOJ大管家 | 590437 | 2020-06-04 13:35:36 |
内存最少[$1080 $KB] | 范晋豪@信息与计算科学142 | 108885 | 2017-07-02 23:10:47 |
第一AC | 范晋豪@信息与计算科学142 | 108885 | 2017-07-02 23:10:47 |
第一挑战 | 范晋豪@信息与计算科学142 | 108885 | 2017-07-02 23:10:47 |
竞赛编号 | 竞赛名称 | 竞赛时间 | 访问比赛 |
---|