c++sort简单解法 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip>#include<math.h>#include<algorithm>using namespac…… 题解列表 2023年10月17日 0 点赞 0 评论 382 浏览 评分:0.0
C语言思路简单,易懂!!! 理解万岁 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int f(int n){ if (n==1||n==0){ return 0;…… 题解列表 2023年10月17日 0 点赞 0 评论 232 浏览 评分:0.0
c++字符串简单解法 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<stdlib.h>using namespace std;int main(){ int a,n; cin>>a>…… 题解列表 2023年10月17日 0 点赞 0 评论 342 浏览 评分:0.0
冒泡排序法 摘要:解题思路:先把插入值放进数组中,再对数组进行冒泡排序注意事项:参考代码:#include<iostream>using namespace std;int main(){ int arr[10]; …… 题解列表 2023年10月17日 0 点赞 0 评论 296 浏览 评分:0.0
选择排序(c语言小白) 摘要:解题思路:用数组来存放这10个数,然后分别在数组里找到第一.二.三...小的分别赋值给下标为arr[0],arr[1].arr[2]....的注意事项:每一次排列好第一小的,就排列其他剩余的第一小的。…… 题解列表 2023年10月17日 0 点赞 0 评论 382 浏览 评分:0.0
找第一个只出现一次的字符 摘要:解题思路:可用列表将出现一次的字符打包注意事项:打包后,应先判断列表是否为空参考代码:a=input()ls=[]for i in a: if (a.count(i)==1): l…… 题解列表 2023年10月18日 0 点赞 0 评论 353 浏览 评分:0.0
c++偶数求和简单解法 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std;int main(){ int n,m; while(cin>>n>>m) { for(i…… 题解列表 2023年10月18日 0 点赞 0 评论 487 浏览 评分:0.0
c++字符串简单解法 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std;int main(){ string str; int n; cin>>n; string …… 题解列表 2023年10月18日 0 点赞 0 评论 257 浏览 评分:0.0
求矩阵的两对角线上的元素之和 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin>>n; int arr[n][n]…… 题解列表 2023年10月18日 0 点赞 0 评论 320 浏览 评分:0.0
2867: 单词的长度(C语言) 摘要: #include int main() { char a[1000]; gets(a); char *p1,*p2; p1=a; p2=a; int …… 题解列表 2023年10月18日 0 点赞 0 评论 533 浏览 评分:0.0