Dotcpp编程2020年二月月赛-问题B 摘要:## 解题思路: 排序问题! 关键在于从大到小 可以直接for循环进行排序 我用的函数直接调用 sort()函数是C++中的排序函数 头文件为:#include头文件; ## 代码如下:…… 文章列表 2020年02月29日 0 点赞 0 评论 535 浏览 评分:9.9
Dotcpp编程2020年二月月赛-问题 E 摘要:## 解题思路: 我认为没什么好说的 直接贴代码了 有不懂的地方下面评论吧 ## 代码如下: ```cpp #include #include using namespace…… 文章列表 2020年02月29日 0 点赞 0 评论 487 浏览 评分:9.9
Dotcpp编程2020年二月月赛-问题 C 摘要:## 解题思路: **快速排序相信大家都学过,就不多说了 1.先从数列中找一个数为中间数。 2.比这个数大的数全放到它的右边,小于或等于它的数放到它的左边。 3.再对左右区间重复第二步,直到各…… 文章列表 2020年02月29日 0 点赞 0 评论 627 浏览 评分:9.9
Dotcpp编程2020年二月月赛-问题 D 摘要:## 解题思路: **java直接实现即可 输入一个数字 遍历每一个数 赋给字符串 最后返回整个字符串 然后逐个查找有1的元素 用一个计数变量来记录即可** ## 代码如下: …… 文章列表 2020年02月29日 0 点赞 0 评论 417 浏览 评分:9.9
线段树的实现 摘要: #include #include using namespace std; /* run this program using the console pa…… 文章列表 2020年03月01日 0 点赞 0 评论 601 浏览 评分:0.0
树状数组, 摘要: #include #include using namespace std; static const int MAX = 5000;…… 文章列表 2020年03月03日 0 点赞 0 评论 554 浏览 评分:0.0
旅行商问题 摘要: #include #include #include using namespace std; static const …… 文章列表 2020年03月03日 0 点赞 0 评论 605 浏览 评分:0.0
旅行商问题,dp 摘要: #include #include #include using namespace std; static const …… 文章列表 2020年03月03日 0 点赞 0 评论 657 浏览 评分:0.0
Traveling by Stagecoach 摘要: #include #include #include using namespace std; static const …… 文章列表 2020年03月03日 0 点赞 0 评论 487 浏览 评分:0.0
OJ中多输入多输出问题 摘要:## 关于OJ中多输入多输出的问题 ** 最近刚入门编程,开始着手做普及题,其中好多的问题都涉及到多输入多输出问题,即题目没有明确说明输入数据到底有多少组。对于此类问题解决的方法如下:** …… 文章列表 2020年03月04日 0 点赞 0 评论 764 浏览 评分:8.0