C语言写法,(编译器为C++)适合新手和蒟蒻(比如我) 摘要:解题思路: 删除的原理就是数组的左移,然后在末尾加上终止符'\0'防止冗余重复,删除空格的原理一样 区 题解列表 2021年10月25日 0 点赞 0 评论 295 浏览 评分:0.0
按照题目意思强行做的方法(我他妈菜呐) 摘要:解题思路:用一个字符串存储输入的大数,然后按照题目意思进行递归即可注意事项:这道题做了接近一天,一直改,唉我太菜了。参考代码:#include <iostream>#include <stdio.h>…… 题解列表 2021年10月25日 0 点赞 0 评论 714 浏览 评分:9.9
非正常解法但是很基础 摘要:解题思路:穷举a,循环求和,判断是否相等,输出。注意事项:参考代码:#include <iostream>using namespace std;int main(){ int a,b,c,su…… 题解列表 2021年10月25日 0 点赞 0 评论 236 浏览 评分:0.0
工程化的C++代码实现 摘要:# 思想 创建一个长度为N数组,交换M次,直接用swap交换就行。 #include #define hh ios::sync_with_stdio(false),cin.t…… 题解列表 2021年10月25日 0 点赞 0 评论 620 浏览 评分:0.0
一种直观的方法(附带一点讨论) 摘要:解题思路:想办法把输入的字符串转化为数字再进行判断即可注意事项:参考代码:#include <iostream>#include <stdio.h>#include <string.h>#includ…… 题解列表 2021年10月24日 0 点赞 0 评论 475 浏览 评分:6.0
1165: 明明的随机数(精简代码) 摘要:解题思路: 先排序,再删除参考代码:#include<iostream>using namespace std;#include<algorithm>int main(…… 题解列表 2021年10月24日 0 点赞 0 评论 171 浏览 评分:0.0
编写题解 1160: 出圈 摘要:解题思路: 寻找规律注意事项: 话不多说,代码简单易懂参考代码:#include<iostream>using namespace s…… 题解列表 2021年10月24日 0 点赞 0 评论 440 浏览 评分:9.9
编写题解 1159: 偶数求和 摘要:解题思路:分奇偶情况讨论注意事项:输出次数的计算参考代码:#include<iostream>using namespace std;int main(){ int n, m; while…… 题解列表 2021年10月23日 0 点赞 0 评论 206 浏览 评分:0.0
[C++][基础算法讲解]简单理解动态规划 摘要:视频讲解:https://www.bilibili.com/video/BV1Lh411n7wi/参考代码:#include #include #include #include using name…… 题解列表 2021年10月23日 0 点赞 0 评论 423 浏览 评分:2.0
[归并排序]数组法(c++) 摘要:解题思路:先分别将两个数组各自排序,再使用归并排序注意事项:参考代码:#include <iostream>using namespace std;int main() { int n, m, t; …… 题解列表 2021年10月23日 0 点赞 0 评论 366 浏览 评分:9.9