用stl构建链表。很快就能解决 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;list <int> node;int main(){ int n;cin >> n…… 题解列表 2023年01月15日 0 点赞 0 评论 392 浏览 评分:0.0
简单易懂矩阵对角线求和 摘要:解题思路:数组,循环,条件注意事项:输入数组时格式为a[i][j],a或a[3][3]都是错的参考代码:#include<stdio.h>int main(){ int i,j,a[3][3]; in…… 题解列表 2023年01月15日 0 点赞 0 评论 385 浏览 评分:0.0
编写题解 1054: 二级C语言-计算素数和 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;bool isprime(int i) { if (i==1||i==0) return fa…… 题解列表 2023年01月15日 0 点赞 0 评论 409 浏览 评分:0.0
编写删除相同的单词函数+冒泡法排序函数 摘要:解题思路:先删除相同字母,再排序,最后进行输出注意事项:参考代码:#include<stdio.h>#include<string.h>//删除重复的单词int dele(char str[][55…… 题解列表 2023年01月16日 0 点赞 0 评论 484 浏览 评分:0.0
链表问题,可自己搭建链表也可直接用stl 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n;cin >> n; list<int>node;…… 题解列表 2023年01月16日 0 点赞 0 评论 385 浏览 评分:0.0
1159: 偶数求和(简洁版本) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n=0,m=0,i; while(scanf("%d%…… 题解列表 2023年01月16日 0 点赞 0 评论 329 浏览 评分:0.0
用一个选择语句即可 摘要:解题思路:注意事项:要考虑整个苹果没吃完的情况参考代码:#include<stdio.h>#include<math.h>int main(){ int n,x,y; scanf("%d %d %d"…… 题解列表 2023年01月16日 0 点赞 0 评论 400 浏览 评分:0.0
1003: [编程入门]密码破译 摘要:解题思路:谢邀,这道入门难住我了注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main(){ int i; c…… 题解列表 2023年01月16日 0 点赞 0 评论 418 浏览 评分:0.0
输出M到N的数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,m,n; scanf("%d%d",&m,&n); if(m<n) …… 题解列表 2023年01月16日 0 点赞 0 评论 665 浏览 评分:0.0
蓝桥杯历届试题-回文数字 摘要:解题思路:注意事项:不知道为什么答案错误67,有大佬能解答一下吗参考代码:n=int(input())l=[0 for _ in range(100)]tmp=1for i in range(1,10…… 题解列表 2023年01月16日 0 点赞 0 评论 401 浏览 评分:0.0