题解列表

筛选

求和训练(C++)

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){    int a,b,c;    c……

阶乘求和(C++解决办法)

摘要:解题思路:注意事项:第一种:数值溢出的情况,第二:循环递归的思路参考代码:#include<iostream>using namespace std;int main(){    int n;    ……

冶炼金属 20行代码

摘要:解题思路:注意max和min+1就OK注意事项:参考代码:#includeusing namespace std;int main(){  int a,b,x,y,n;    cin>>n;  int……

利用字符数组求解字符串拷贝

摘要:解题思路:用一个数组接收用户输入值找出从第几位开始往后记录输入到下一个数组中输出下一个数组即可注意事项:定义时应该定义成字符数组,用char参考代码:#include<iostream>using n……

1136题的题解

摘要:[题目传送门](https://www.dotcpp.com/oj/problem1136.html "题目传送门") ### **思路** 题目中说四位数前两位的数和后两位的数加起来的平方等于这……

简单实现素数和

摘要:解题思路:注意事项:注意1不是素数!参考代码:#include<iostream>using namespace std;int  isprime(int x){       int a=0;    ……

简单实现成绩统计

摘要:解题思路:注意事项:注意初始化问题等细节问题。参考代码:#include<iostream>#include<string>using namespace std;struct student    ……