1025-数组插入处理 语言:C++ 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a[10],n; for(int i=0;i<9;i++) …… 题解列表 2022年10月05日 0 点赞 0 评论 299 浏览 评分:0.0
1024-矩阵对角线求和 语言:C++ 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a[3][3]; for(int i=0;i<3;i++) …… 题解列表 2022年10月05日 0 点赞 0 评论 260 浏览 评分:6.0
1023-选择排序 语言:C++ 摘要:解题思路:注意事项:参考代码:/*从小到大选择排序:每一次从待排序数列中找出最小的数。 */#include<iostream>using namespace std;int main(){ int …… 题解列表 2022年10月04日 0 点赞 0 评论 356 浏览 评分:0.0
1021-迭代法求平方根 语言:C++ 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath> using namespace std;int main(){ int n; cin >>n; dou…… 题解列表 2022年10月04日 0 点赞 0 评论 436 浏览 评分:0.0
很简单的写法 有不对的地方欢迎大家评论 摘要:解题思路:矩阵行与列互换即可 输入a[i][j] 输出a[j][i]注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){…… 题解列表 2022年10月04日 0 点赞 0 评论 296 浏览 评分:6.0
1015-求和训练 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;typedef long long LL;LL sum(int a){ LL res=0; f…… 题解列表 2022年10月04日 0 点赞 0 评论 254 浏览 评分:0.0
1016-水仙花数判断 语言:C++ 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){ int a,b,c=3; …… 题解列表 2022年10月04日 0 点赞 0 评论 298 浏览 评分:0.0
1017-完数的判断 语言:C++ 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin >>n; for(int i=2;i…… 题解列表 2022年10月04日 0 点赞 0 评论 290 浏览 评分:0.0
1018-有规律的数列求和 语言:C++ 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin >>n; int a[n]={2,3},b[n]…… 题解列表 2022年10月04日 0 点赞 0 评论 245 浏览 评分:0.0
1019-自由下落的距离计算 语言:C++ 摘要:解题思路:注意事项:参考代码:/*/2:n次求和:前n-1次 */#include<iostream>using namespace std;int main(){ double m; int n; …… 题解列表 2022年10月04日 0 点赞 0 评论 258 浏览 评分:0.0