题解列表

筛选

简单易理解的思路

摘要:题目只是为了将大写改成小写,只要是控制原本字符数组中大写字母直接+32变成小写就好了 #include int main() { int i; char a[128]; ……

傻瓜式解决方法

摘要:#include #include //(类比依次输出数字的大小,采用中间变量进行排序) int main() { char str1[100], str2[100], str3[……

Max函数(c++)

摘要:解题思路:使用Max函数int a=0,b=1; int c=max(a,b);//然后c会被max赋值为两个数中更大的数的值注意事项:max中只能填两个数参考代码:#include<bits/st……

编写题解 1098: 陶陶摘苹果

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int a[10],tg,zd=0; for(int i=0;……

2799 奥运奖牌计数

摘要:解题思路:    #include <bits/stdc++.h>    using namespace std;    int main()    {       int n,sum1=0, sum……

N以内累加求和

摘要:解题思路:循环注意事项:n大写参考代码:#include <iostream>using namespace std;int main() {    int N,sum = 0;    cin >> ……