Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有 N 块,每块的大小为 Ai。将一块大小为 x 的块和一块大小为 y 的块连接起来的成本是 abs(xy)。加入所有部分的最佳方式是什么?可以使用最大流算法解决吗?