摘要:
又是几天不做题,一个二进制优化的多重背包让我写的狗屁不通,错漏百出!TLE, WA了好几次,都是细节啊。思路,很裸的多重背包。My Code: 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 5 using namespace std; 6 7 const int N = 100010; 8 const int M = 1024; 9 10 int f[N];11 int k[M], c[M];12 13 int Max(int x, int y) {14 return x & 阅读全文