迷宫(bfs)(queue)(acwing) 摘要:#include<iostream> #include<cstring> #include<queue> #include<algorithm> using namespace std; t…… 文章列表 2023年08月01日 0 点赞 0 评论 143 浏览 评分:9.9
大连交通大学五年制C语言试卷五 考试笔记 摘要:2、字符串"\"ABC"\"所占内存字节的长度是( )。正确答案:B A. 11 B. 8 B. 5 B. 7【解析】:\,",A,B,C,",\,\0共8个字节长度。3、用scan…… 文章列表 2023年08月02日 0 点赞 0 评论 368 浏览 评分:9.9
树的重心(最小的 子树的最大节点)(bfs,邻接表)(acwing) 摘要:#include<bits/stdc++.h> using namespace std; const int N=10050; int n; int he[N],e[N],ne[N],idx=…… 文章列表 2023年08月05日 0 点赞 0 评论 142 浏览 评分:9.9
图中点的层次(从1到n的最短路)(bfs)(acwing) 摘要:/* 4 5 1 2 2 3 3 4 1 3 1 4 */ &n 文章列表 2023年08月07日 0 点赞 0 评论 92 浏览 评分:9.9
拓扑排序(acwing) 摘要://输入一个图 判断是否为拓扑排序(没有环) /* 3 3 1 2 2 3 1 3 */ //样例输出为1 2 3 #in 文章列表 2023年08月07日 0 点赞 0 评论 105 浏览 评分:9.9
题目 1505: 蓝桥杯算法提高VIP-单词个数统计(简便快捷) 摘要:#include<iostream>using namespace std;int main(){ string a; int b=0; while(cin>>a) b++; …… 文章列表 2023年08月11日 0 点赞 0 评论 131 浏览 评分:9.9
题目 1128: C语言训练-排序问题<1>(简便) 摘要:#include<bits/stdc++.h>using namespace std;int main(){ int a[4]; for(int i=0;i<4;i++) cin>>a[i…… 文章列表 2023年08月11日 0 点赞 0 评论 155 浏览 评分:9.9
题目 1129: C语言训练-排序问题<2> 摘要:#include<bits/stdc++.h> using namespace std; int main() { int a[10]; for(int i=0;i<10;i…… 文章列表 2023年08月11日 0 点赞 0 评论 162 浏览 评分:9.9
朴素 Dijkstra算法 (acwing) 摘要:/* 3 3 1 2 2 2 3 1 1 3 4 */ //找到到达起点的最短路 #include& 文章列表 2023年08月12日 0 点赞 0 评论 130 浏览 评分:9.9