题解列表

筛选

按照题目意思强行做的方法(我他妈菜呐)

摘要:解题思路:用一个字符串存储输入的大数,然后按照题目意思进行递归即可注意事项:这道题做了接近一天,一直改,唉我太菜了。参考代码:#include <iostream>#include <stdio.h>……

非正常解法但是很基础

摘要:解题思路:穷举a,循环求和,判断是否相等,输出。注意事项:参考代码:#include <iostream>using namespace std;int main(){    int a,b,c,su……

工程化的C++代码实现

摘要:# 思想 创建一个长度为N数组,交换M次,直接用swap交换就行。 #include #define hh ios::sync_with_stdio(false),cin.t……

一种直观的方法(附带一点讨论)

摘要:解题思路:想办法把输入的字符串转化为数字再进行判断即可注意事项:参考代码:#include <iostream>#include <stdio.h>#include <string.h>#includ……

编写题解 1160: 出圈

摘要:解题思路:                  寻找规律注意事项:                 话不多说,代码简单易懂参考代码:#include<iostream>using namespace s……

编写题解 1159: 偶数求和

摘要:解题思路:分奇偶情况讨论注意事项:输出次数的计算参考代码:#include<iostream>using namespace std;int main(){    int n, m;    while……

[归并排序]数组法(c++)

摘要:解题思路:先分别将两个数组各自排序,再使用归并排序注意事项:参考代码:#include <iostream>using namespace std;int main() { int n, m, t; ……