摘要:
[USACO18OPEN] Talent Show G #include <bits/stdc++.h> using namespace std; const int inf = 0x3f3f3f3f,N = 255,WN = 1010; int n,W; struct name{ int w,t; 阅读全文
摘要:
0x00 背景 求 : $max\tfrac{\sum_{i=1}^na_ix_i}{\sum_{i=1}^nb_ix_i}(x_i=0/1)$ 我们称此类问题为 “0/1分数规划” Plan A 爆搜 , 时间复杂度 $2^n$ , 寄 Plan B 二分法 0x01 二分法和0/1分数规划 pa 阅读全文