01 2020 档案
摘要:[蓝桥杯2015初赛]方程整数解 题目描述 方程: a^2 + b^2 + c^2 = 1000 这个方程有正整数解吗?有:a,b...
阅读全文
摘要:多重背包问题 I 有 N 种物品和一个容量是 V的背包,每种物品都有无限件可用。第 i种物品的体积是 vi,价值是 wi。求解将哪些...
阅读全文
摘要:完全背包问题 有 N 种物品和一个容量是 V的背包,每种物品都有无限件可用。第 i种物品的体积是 vi,价值是 wi。求解将哪些物品...
阅读全文
摘要:01背包问题 二维状态方程-代码思路: struct something{ int index;//物体编号 int m;//物体体...
阅读全文
摘要:cpp输入输出加速 std::ios::sync_with_stdio(false); 解释:这个函数是一个“是否兼容stdio”的...
阅读全文
摘要:算法训练 加法运算(指针的一个测试) #include using namespace std;int* GetTwoInts(){...
阅读全文