摘要:
传送门 C - Bowls and Dishes 暴搜,二进制枚举,复杂度$O(2^km)$ #include<iostream> #include<cstring> using namespace std; const int N = 110, M = 16; int a[N], b[N], c[ 阅读全文
摘要:
这题的dp怎么分析 学习dp的刷表法(这题的正推怎么做) #include<iostream> using namespace std; const int N = 10010; struct Node{ int a, b; }works[N]; int f[N]; int cnt[N]; int 阅读全文
摘要:
01背包问题变形 #include<iostream> using namespace std; #define LL long long const int N = 1010; int win[N], lose[N], use[N]; int f[N][N]; int n, x; int main 阅读全文