#include <iostream> #include <vector> #include <algorithm> using namespace std; // 二进制拆分函数 - 使用 long long 避免溢出 vector<pair<long long, long long>> binarySplit(int weight, int value, int count) { vector<pair<long long, long long>> items; // 存放拆分后的各组物品 int k = ...