问题 1936: 蓝桥杯算法提高VIP-最大乘积 摘要: **对于n个数,从中取出m个数,如何取使得这m个数的乘积最大呢?** ** 输入: 第一行一个数表示数据组数 每组输入数据共2行: 第1行给出总共的数字的个数n和要取的数的个…… 文章列表 2020年02月19日 0 点赞 0 评论 462 浏览 评分:9.9
尺取法,挑战程序设计 摘要:P146 #include #include #include #include #include using namespa…… 文章列表 2020年02月19日 0 点赞 0 评论 547 浏览 评分:0.0
尺取法,p146 摘要: #include #include #include using namespace std; static const int MAX = 50…… 文章列表 2020年02月19日 0 点赞 0 评论 510 浏览 评分:9.9
尺取法,p149 摘要: #include #include #include #include #include using namespace std; …… 文章列表 2020年02月19日 0 点赞 0 评论 387 浏览 评分:0.0
C enum(枚举)(转载) 摘要: 枚举是 C 语言中的一种基本数据类型,它可以让数据更简洁,更易读。 枚举语法定义格式为: enum 枚举名 {枚举元素1,枚举元素2,……}; 接下来我们举个例子,比如:一星期有 7…… 文章列表 2020年02月20日 0 点赞 0 评论 1022 浏览 评分:9.9
开关问题,p150 摘要: #include #include #include using namespace std; static const int MAX = 50…… 文章列表 2020年02月20日 0 点赞 0 评论 418 浏览 评分:0.0
面试题【剑指】:如何不适用循环,整除,条件判断语句实现1+2+3+……n 摘要:> 题目:求1+2+……+n,要求不能使用整除法,for,while,if,else,switch,case等循环关键字及条件判断语句(A?B:C) 当没有这个限制需求的时候,这个题目极其简单,…… 文章列表 2020年02月23日 0 点赞 0 评论 718 浏览 评分:9.2
对 问题 1670: 拆分位数 的C语言巧♂妙操作 摘要:我们都知道,[问题 1670: 拆分位数](https://www.dotcpp.com/oj/problem1670.html "问题 1670: 拆分位数") 这个大概意思就是给你一个三位数,然后…… 文章列表 2020年02月24日 0 点赞 3 评论 328 浏览 评分:9.9
冒泡排序法 摘要: #include using namespace std; static const int MAX = 5000; int n; …… 文章列表 2020年02月24日 0 点赞 0 评论 626 浏览 评分:9.9
归并排序,merge,分治法 摘要: #include #include using namespace std; static const int MAX = 5000; …… 文章列表 2020年02月24日 0 点赞 0 评论 589 浏览 评分:0.0