四种方法求解字符串反转 摘要:解题思路:关于sizeof(),strlen(),length(),size()char a[100]:定义一个字符数组(使用sizeof和strlen时需要用char定义字符数组)cin>>a;用于…… 题解列表 2024年01月19日 0 点赞 0 评论 314 浏览 评分:0.0
题解 2825: 计算多项式的值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double x,sum=0; long lo…… 题解列表 2024年01月19日 0 点赞 0 评论 284 浏览 评分:0.0
题解 2830: 数字统计 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ long long l,r,sum=0; cin…… 题解列表 2024年01月19日 0 点赞 0 评论 285 浏览 评分:9.9
题解 2825: 计算多项式的值 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ double x,n,sum=1,a; cin>…… 题解列表 2024年01月19日 0 点赞 0 评论 312 浏览 评分:9.9
2829: 数1的个数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n,sum = 0; ci…… 题解列表 2024年01月19日 0 点赞 0 评论 267 浏览 评分:0.0
1014: [编程入门]阶乘求和 摘要:解题思路:die!注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n,sum=0; …… 题解列表 2024年01月19日 0 点赞 0 评论 227 浏览 评分:9.9
题解 2829: 数1的个数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n,sum=0; cin>…… 题解列表 2024年01月19日 0 点赞 0 评论 247 浏览 评分:0.0
题解 1014: [编程入门]阶乘求和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n,sum=0; cin>…… 题解列表 2024年01月19日 0 点赞 0 评论 323 浏览 评分:9.9
两种方法实现二维数组的转置 摘要:解题思路:可通过两种方式求解此题方式1:通过观察得知,此九宫格二维数组只有6个数需要调换,即2和4,3和7,6和8,故只需要用swap函数两两一组调换3次即可方式2:设一个中间数组用于接收初始数组,把…… 题解列表 2024年01月18日 0 点赞 0 评论 382 浏览 评分:0.0
蛮力法求解自定义函数处理素数问题 摘要:解题思路:用户输入一个数a通过for循环拿到2~a-1中的所有数,再用a逐个取模这些数,判断结果是否为0,若等于0则为素数注意事项:无参考代码:#include<iostream>using name…… 题解列表 2024年01月18日 0 点赞 0 评论 411 浏览 评分:0.0