蓝桥杯2017年第八届真题-分考场 图的染色 DFS,一步一注释 摘要:```cpp #include #include using namespace std; int n, m; int G[105][105]; int KC[105][105]; in…… 题解列表 2022年03月09日 0 点赞 0 评论 485 浏览 评分:9.9
1708: 数据结构-最短路径算法 摘要:解题思路:注意事项:参考代码:n,s=map(int,input().split()) dp=[] for i in range(n): dp.append(list(map(int,i…… 题解列表 2022年03月09日 0 点赞 1 评论 356 浏览 评分:0.0
做题记录2022.3.9(ac:100%) 摘要:解题思路:两种方向:从a到b的范围内取数,然后分割判断该数是否符合要求,这样会存在一些冗余判断,但实现起来较为简单先生成平方数,然后在所给定的范围内拼接出符合要求的数,完全没有冗余,但考虑情况较多.如…… 题解列表 2022年03月09日 0 点赞 0 评论 427 浏览 评分:0.0
兰顿蚂蚁 C++ 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <map> #include <string> using namespace std; int dy[…… 题解列表 2022年03月09日 0 点赞 0 评论 276 浏览 评分:0.0
编写题解 1113: C语言考试练习题_保留字母 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int m,j=0; char str1[81],str2[81]; get…… 题解列表 2022年03月09日 0 点赞 0 评论 287 浏览 评分:0.0
1053: 二级C语言-平均值计算 摘要:解题思路:建一个大小为10个int的数组,用for循环存放输入数据以及比较大小。注意事项:我把输入数据当成是有序的了,花了十分钟找bug,也是醉了。参考代码:#include <iostream> …… 题解列表 2022年03月09日 0 点赞 0 评论 2112 浏览 评分:8.7
The kth great number 摘要:####本题中要求输入一组数据中第k大的数 ####具体代码如下: ```java import java.util.ArrayList; import java.util.Arrays; …… 题解列表 2022年03月09日 0 点赞 0 评论 454 浏览 评分:9.9
编写题解 1114: C语言考试练习题_排列 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int str[4]; for(int i=0;i<4;i++) { scanf("%d",&str[i]);…… 题解列表 2022年03月09日 0 点赞 0 评论 475 浏览 评分:2.0
编写题解 1022: [编程入门]筛选N以内的素数 摘要:解题思路:注意事项:参考代码:#include#includeusing namespace std;int main(){ bool t = true; int n; cin>>n…… 题解列表 2022年03月09日 0 点赞 0 评论 293 浏览 评分:0.0
编写题解 1112: C语言考试练习题_一元二次方程 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double a,b,c,x1,x2; scanf("%lf %lf %lf",…… 题解列表 2022年03月09日 0 点赞 0 评论 397 浏览 评分:0.0