Loading

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