蓝桥杯历届试题-九宫重排 (C++代码) 摘要:解题思路: 主要的思路是利用bfs进行广搜,直到搜寻到最终结果,输出路径长度。注意事项: 这里需要注意几点与一般的bfs不同的地方。 1. 对于queue中存储的元素类型,一般的bf…… 题解列表 2018年11月13日 5 点赞 1 评论 1156 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.3 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;class student{ public: void input(); void pri…… 题解列表 2018年11月13日 0 点赞 0 评论 766 浏览 评分:0.0
采药 (C++代码) 摘要:#include<bits/stdc++.h> using namespace std; typedef long long ll; const ll MAX=987654321; ll n,…… 题解列表 2018年11月13日 2 点赞 0 评论 748 浏览 评分:0.0
开心的金明 (C++代码) 摘要:#include<bits/stdc++.h> using namespace std; typedef long long ll; ll n,m; ll dp[100000],v[10000…… 题解列表 2018年11月13日 0 点赞 0 评论 1153 浏览 评分:0.0
蓝桥杯算法提高VIP-排列式 (C++代码) 摘要:解题思路:先分析问题,不要盲目暴力。如果直接搜索,使用先求全排列,然后逐位选取数字,再组合的方法,复杂度在P(9,4)*P(5,2)*3! = 362880 > 3*10^5上下,可能在1s的时间里是…… 题解列表 2018年11月13日 0 点赞 0 评论 1163 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.1 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;struct date{ int year; int month; int day; int…… 题解列表 2018年11月13日 0 点赞 0 评论 866 浏览 评分:0.0
蓝桥杯算法提高VIP-寻找三位数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int a[10],book[10]; a相当于盒子呀,b就来标记这个数字是否被用过void dfs(int step){ in…… 题解列表 2018年11月13日 0 点赞 0 评论 978 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.2 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>typedef struct OUTPUT{double root_1;double vir_root_…… 题解列表 2018年11月13日 0 点赞 0 评论 1186 浏览 评分:0.0
求两个集合交集 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; typedef long long ll; const ll MAX=98…… 题解列表 2018年11月13日 1 点赞 0 评论 1595 浏览 评分:0.0
蓝桥杯算法提高VIP-拿糖果 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; typedef long long ll; const ll MAX=98…… 题解列表 2018年11月13日 2 点赞 1 评论 1361 浏览 评分:6.0