蓝桥杯2022年第十三届决赛真题-出差 摘要:解题思路:基本上是裸的单源最短路将隔离天数加入到行程花费时间当中,也就是从城市a到城市b需要花费a城市隔离天数加上a到b道路的天数注意事项:n可以等于1从1城市出发不需要隔离参考代码:#include…… 题解列表 2024年05月22日 0 点赞 0 评论 640 浏览 评分:0.0
1731: 二叉树 摘要:解题思路:利用递归思路,和满二叉树的性质,一个结点的左孩子会等于 该节点i*2 右孩子会等于i*2+1,而左孩子又会有左右孩子,右孩子也会有左右孩子则可以利用递归,递归的出口就是 左孩子 都右孩子 大…… 题解列表 2024年05月23日 0 点赞 0 评论 407 浏览 评分:0.0
1048字符串拷贝(strncpy函数的使用) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<stdlib.h>int main(){ int n; scanf("%d ",&…… 题解列表 2024年05月23日 0 点赞 0 评论 583 浏览 评分:0.0
1049时间设计(结构体实现) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>typedef struct shijian{ int nian; int yue; int ru;}shijian;int main(…… 题解列表 2024年05月23日 0 点赞 0 评论 297 浏览 评分:0.0
1050成绩记录 摘要:解题思路:注意事项:参考代码:#include<stdio.h>typedef struct student{ char xuehao[20]; char xinming[20]; int a; in…… 题解列表 2024年05月23日 0 点赞 0 评论 306 浏览 评分:0.0
1051成绩统计2 摘要:解题思路:注意事项:参考代码:#include<stdio.h>typedef struct student{ char xuehao[20]; char xinming[20]; int a; in…… 题解列表 2024年05月23日 0 点赞 0 评论 343 浏览 评分: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 评论 469 浏览 评分: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 评论 512 浏览 评分:0.0
1052 链表合并(输出是用二维数组的,链表排序不会) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<string.h>typedef struct student { int a; …… 题解列表 2024年05月24日 0 点赞 0 评论 380 浏览 评分:0.0
无聊的星期六 摘要:无聊上个动态。 #include<stdio.h> #include<stdlib.h> int main(){ int size,sum=0; scanf("%d",&size)…… 题解列表 2024年05月25日 0 点赞 0 评论 644 浏览 评分:0.0