2022年12月7日
摘要: 复杂度 n^2 * logn 类似倍增, 将 num[i] 拆为 1+2+4+ .... ,这样取物品i 时,可以一次多取一些 #include <iostream> #include <cstring> #include <algorithm> using namespace std; const 阅读全文
posted @ 2022-12-07 15:44 towboat 阅读(28) 评论(0) 推荐(0)