题解列表

筛选

四种方法求解字符串反转

摘要:解题思路:关于sizeof(),strlen(),length(),size()char a[100]:定义一个字符数组(使用sizeof和strlen时需要用char定义字符数组)cin>>a;用于……

题解 2825: 计算多项式的值

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    double x,sum=0;    long lo……

题解 2830: 数字统计

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    long long l,r,sum=0;    cin……

题解 2825: 计算多项式的值

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

2829: 数1的个数

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    long long n,sum = 0;    ci……

1014: [编程入门]阶乘求和

摘要:解题思路:die!注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    long long n,sum=0;    ……

题解 2829: 数1的个数

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

题解 2824: 求出e的值

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