只对了#1、#2、#13,求debug

P1194 买礼物

@[Jared0503](/user/1074812) 思路不对,努力白费,这是克鲁斯卡尔裸题。。
by liverxiwo @ 2024-01-11 13:09:01


@[Jared0503](/user/1074812) 你这个算法无论如何优化都会被卡。。。
by liverxiwo @ 2024-01-11 13:09:29


@[liverxiwo](/user/1162380) 可是我估算时间复杂度为 $O(2×b^2)$ 啊,不会卡吧
by Jared0503 @ 2024-01-11 13:16:16


@[liverxiwo](/user/1162380) 这是最坏的情况
by Jared0503 @ 2024-01-11 13:16:55


@[Jared0503](/user/1074812) 他有个前提是必须先买x才能优惠y
by czh___ @ 2024-01-27 17:32:43


|