摘要:
## 一、基本概念 ### (一)、非线性规划数学模型 非线性规划数学模型的一般形式是: $ \begin{cases} minf(\bold X) \\ \quad h_i(\bold X)=0(i=1,2,\dots,m) \\ \quad g_j(\bold X)\geq 0(j=1,2,\d 阅读全文
摘要:
###题目描述 糖果店的老板一共有M 种口味的糖果出售。为了方便描述,我们将 M 种口味编号 。 小明希望能品尝到所有口味的糖果。遗憾的是老板并不单独出售糖果,而是 颗一包整包出售。 幸好糖果包装上注明了其中 颗糖果的口味,所以小明可以在买之前就知道每包内的糖果口味。 给定 阅读全文
摘要:
###题目描述 小蓝很喜欢吃巧克力,他每天都要吃一块巧克力。 一天小蓝到超市想买一些巧克力。超市的货架上有很多种巧克力,每种巧克力有自己的价格、数量和剩余的保质期天数,小蓝只吃没过保质期的巧克力,请问小蓝最少花多少钱能买到让自己吃 天的巧克力。 ###输入描述 输入的第一行包含两个整数 $x 阅读全文
摘要:
题之后补吧 ###A.One and Two #include <bits/stdc++.h> using namespace std; #define endl '\n' #define cerr(x) std::cerr << (#x) << " is " << (x) << '\n' # 阅读全文
摘要:
###1.CF1768C Elemental Decompress(*1300 贪心、构造) 参考@此处 用表示仍未填入中的数字。 贪心策略: 将未重复的数尽量填入中,重复的数填入中,同时更新。 对于中每一位未填的数 阅读全文
摘要:
一套题学到不少东西 ###A.Two Elevators 模拟 #include <bits/stdc++.h> using namespace std; #define endl '\n' #define cerr(x) std::cerr << (#x) << " is " << (x) << 阅读全文
摘要:
###A.Yes-Yes? 构造一个的字符串,判断是不是子串即可。 #include <bits/stdc++.h> using namespace std; #define endl '\n' #define cerr(x) std::cerr << (#x) << " is " << 阅读全文
摘要:
挺有质量一套题 ###A.Number Replacement 对于数字串中出现次数的数字,判断是否对应同一个字母,出现次数为的数字没有贡献。 #include <bits/stdc++.h> using namespace std; #define endl '\n' #def 阅读全文
摘要:
###A.Parallel Projection #include <bits/stdc++.h> using namespace std; #define endl '\n' #define cerr(x) std::cerr << (#x) << " is " << (x) << '\n' #d 阅读全文
摘要:
数学训练(×) 脑筋急转弯 ###1.LightOJ1008 Fibsieve's Fantabulous Birthday 找规律 此题已经写过题解了,看@此处 ###2.LightOJ1010 Knights in Chessboard 找规律 没想出来,分享好题解@ 阅读全文