摘要:
dp[i] 代表能否凑出总数为i的cash 1 #include 2 #include 3 4 int n[11], d[11], cash, N; 5 bool dp[100010]; 6 7 int main(int argc, char const *argv[]) 8 { 9 ... 阅读全文
摘要:
dp[i] 代表能否凑出总数为i的cash 1 #include 2 #include 3 4 int n[11], d[11], cash, N; 5 bool dp[100010]; 6 7 int main(int argc, char const *argv[]) 8 { 9 ... 阅读全文
摘要:
dp[i][j]用前i个砝码,使"力矩"大小为j的情况数量极端情况下,20个重量为25的砝码,都挂在距离中心点-15的位置,得到力矩是-7500所以,让j=7500时为平衡状态 1 #include 2 #include 3 4 #define MAXN 20 5 6 int C, G, d... 阅读全文
|