题解列表

筛选

“统计字符”的题解方法

摘要:解题思路:定义一个函数并调用,分别用p、q、m、n代表英文字母、空格、数字和其他字符的个数注意事项:输入字符用gets,而不用scanf,因为gets函数可以输入一个含空格的字符串;参考代码:#inc……

二级C语言-等差数列

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<fstream>#include<algorithm>using namespace std;int n,t=2,s……

1952: 求长方形面积

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<fstream>#include<algorithm>using namespace std;long long a……

[编程入门]数字逆序输出

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