蓝桥杯2022年第十三届决赛真题-卡牌 摘要:注意事项:m记得开long long参考代码:#include<bits/stdc++.h> using namespace std; struct node { long long a; …… 题解列表 2024年05月22日 0 点赞 0 评论 396 浏览 评分:0.0
1047 报数问题(一维数组遍历求解) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int a[n+2]; for(int i=1;i<=n;i++)…… 题解列表 2024年05月22日 0 点赞 0 评论 133 浏览 评分:0.0
蓝桥杯2022年第十三届决赛真题-出差 摘要:解题思路:基本上是裸的单源最短路将隔离天数加入到行程花费时间当中,也就是从城市a到城市b需要花费a城市隔离天数加上a到b道路的天数注意事项:n可以等于1从1城市出发不需要隔离参考代码:#include…… 题解列表 2024年05月22日 0 点赞 0 评论 390 浏览 评分:0.0
1731: 二叉树 摘要:解题思路:利用递归思路,和满二叉树的性质,一个结点的左孩子会等于 该节点i*2 右孩子会等于i*2+1,而左孩子又会有左右孩子,右孩子也会有左右孩子则可以利用递归,递归的出口就是 左孩子 都右孩子 大…… 题解列表 2024年05月23日 0 点赞 0 评论 168 浏览 评分:0.0
1048字符串拷贝(strncpy函数的使用) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<stdlib.h>int main(){ int n; scanf("%d ",&…… 题解列表 2024年05月23日 0 点赞 0 评论 346 浏览 评分:0.0
1049时间设计(结构体实现) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>typedef struct shijian{ int nian; int yue; int ru;}shijian;int main(…… 题解列表 2024年05月23日 0 点赞 0 评论 118 浏览 评分:0.0
1050成绩记录 摘要:解题思路:注意事项:参考代码:#include<stdio.h>typedef struct student{ char xuehao[20]; char xinming[20]; int a; in…… 题解列表 2024年05月23日 0 点赞 0 评论 122 浏览 评分:0.0
1051成绩统计2 摘要:解题思路:注意事项:参考代码:#include<stdio.h>typedef struct student{ char xuehao[20]; char xinming[20]; int a; in…… 题解列表 2024年05月23日 0 点赞 0 评论 155 浏览 评分:0.0
编写题解 2814: 正常血压 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int n,a,b,s=0,max=0; cin>>n; fo…… 题解列表 2024年05月23日 0 点赞 0 评论 226 浏览 评分:0.0
统计满足条件的4位数个数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int a,t=0;cin>>a;int q,b,x,g,s;…… 题解列表 2024年05月24日 0 点赞 0 评论 325 浏览 评分:0.0