题解列表

筛选

1012字符串分类统计

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){char c;int letters=0,space=0,dight=0,other=0;while((c=ge……

1952: 求长方形面积

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int a,s,d,f;cin >> s;cin >> a;d……

简单易懂,求圆的面积

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){double a,d;cin >> a;d=a*a*3.141……

二级C语言-等差数列

摘要:解题思路:利用高中学过的等差数列前n项和的公式:n*a+n*(n-1)*d/2即可解。其中a为第一项,d为公差,在这里a=2,d=3.注意事项:参考代码:#include<stdio.h> int m……

极其简单,走过路过别错过

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,cnm=-2;\\方便后面的输出 scanf("%d",&n); int a[100000],b……

Yu:2816统计满足条件的4位数个数

摘要:#### 解题思路: 在会如何得到每一位数的情况下再思考此题。 如何得到每一位数的模板如下: ```c++ while(n){ // 当n变为0时循环结束 cout > ……

一个for循环阶乘求和

摘要:解题思路:用a1表示阶乘的结果,再相加即可注意事项:a1和Sn的数据类型是long long int 参考代码:#include<bits/stdc++.h>using namespace std;i……