【编程入门】自定义函数之数字后移 摘要:参考代码:#include <bits/stdc++.h> using namespace std; int main(){ int n,k; int p[1007],s[1007]; …… 题解列表 2024年06月15日 0 点赞 0 评论 146 浏览 评分:9.9
编写题解 2797: 最高的分数 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){ int n,maxx=0; cin>>n; for(int i=1;i<…… 题解列表 2024年06月16日 0 点赞 0 评论 188 浏览 评分:9.9
编写题解 2794: 求平均年龄 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,sum=0; cin>>n; …… 题解列表 2024年06月16日 1 点赞 0 评论 629 浏览 评分:9.9
编写题解 2799: 奥运奖牌计数 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int n,sum1=0,sum2=0,sum3=0,d; …… 题解列表 2024年06月16日 0 点赞 0 评论 309 浏览 评分:9.9
Max函数(c++) 摘要:解题思路:使用Max函数int a=0,b=1; int c=max(a,b);//然后c会被max赋值为两个数中更大的数的值注意事项:max中只能填两个数参考代码:#include<bits/st…… 题解列表 2024年06月17日 0 点赞 0 评论 310 浏览 评分:9.9
麻了 已有a、b两个链表,每个链表中的结点包括学号、成绩。要求把两个链表合并,按学号升序排列。 摘要:解题思路:先创单链表,然后本题考查的就是单链表的增删改查基本操作,最后多了排序,我们先将信息存进去,然后合并,再排序,最后输出;注意事项:一定要抽象清晰,基础扎实参考代码:#include<iostr…… 题解列表 2024年06月18日 0 点赞 0 评论 343 浏览 评分:9.9
简单的蓝桥杯冶炼金属问题解题思路 摘要:解题思路: 因为普通金属的值不会超过A的最大值,最小不会小于1;因此解题思路一目了然可以让可能值历经1--maxA符合条件的记录到新数组;再将新数组排序输出; 注意事项: …… 题解列表 2024年06月19日 0 点赞 0 评论 374 浏览 评分:9.9
【编程入门】猴子吃桃问题 摘要:参考代码:# include <stdio.h> int main(){ int sum=1,N; scanf("%d",&N); while(--N) sum=(su…… 题解列表 2024年06月19日 0 点赞 0 评论 354 浏览 评分:9.9
【编程入门】自由下落的距离计算 摘要:参考代码:# include<stdio.h># include<math.h> void ReBack(double M){ double back,sum=M; int i,N; …… 题解列表 2024年06月19日 0 点赞 0 评论 205 浏览 评分:9.9
好笨的方法,哈哈哈,编写程序实现“剪刀,石头,布”游戏。 摘要:解题思路:输入,然后通过选择得出结果,最后输出注意事项:在赋值的时候,因为是枚举类型,所以不可以使用cin输入参考代码:#include#include #include typedef enum G…… 题解列表 2024年06月20日 0 点赞 0 评论 368 浏览 评分:9.9