摘要:
C++ : 使用动态规划 算法的函数 int knapsack(int W, int wt[], int val[], int n) { int dp[n+1][W+1]; //报错 for (int i = 0; i <= n; i++) { for (int w = 0; w <= W; w++ 阅读全文
摘要:
给定一个数组,找出组内元素相加值最大的子数组, 子数组元素由 给定数组的连续元素组成,子数组长度 在 1 和 给定数组的长度之间。 #include <iostream> #include <climits> using namespace std; // 返回两个数中的最大值 int max(in 阅读全文
摘要:
VMware 解锁 MacOS https://github.com/DrDonk/unlocker/releases 修改 .vmx 文件 末尾加入 smc.version = "0" --可能需要添加这句 cpuid.0.eax = "0000:0000:0000:0000:0000:0000: 阅读全文