3037: 棋盘问题 c++ 标准dfs 摘要:解题思路:1.标记棋盘位置2.每个位置可以放棋子和不放棋子3.分别搜索4.填完一种可能ans+1注意事项:dfs中有两个量,要区分!!step表示在第几号棋盘格num表示填了几个棋子参考代码:#inc…… 题解列表 2024年04月08日 0 点赞 0 评论 317 浏览 评分:0.0
蓝桥杯2019年第十届省赛真题-外卖店优先级 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; priority_queue<int,vector<int>,greater…… 题解列表 2024年04月08日 0 点赞 0 评论 221 浏览 评分:0.0
明明的随机数 摘要:解题思路:先输入N,输入N个数,先排序再去重,最后输出,这种解题有点麻烦但是易懂注意事项:参考代码:#include<stdio.h> int main(){ int a[1000],n,i,j,t…… 题解列表 2024年04月08日 0 点赞 0 评论 189 浏览 评分:0.0
蓝桥杯算法提高-能量项链 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n, i, k, left, right; int arr[200], min; l…… 题解列表 2024年04月08日 0 点赞 0 评论 298 浏览 评分:0.0
题解 2701 取模C语言 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> in…… 题解列表 2024年04月08日 3 点赞 0 评论 363 浏览 评分:0.0
矩阵转置,非常规的简单方法 摘要:解题思路:注意事项:参考代码:m,n = map(int,input().split()) num = [list(map(int,input().split())) for _ in range(…… 题解列表 2024年04月08日 0 点赞 0 评论 245 浏览 评分:0.0
蓝桥杯2020年第十一届国赛真题-答疑 C++ 排序 贪心 摘要:解题思路:在前面都选择花费总时间最少的 最后的答案一定是花费时间最少的注意事项:记得开 long long参考代码:#include<bits/stdc++.h>#define int long lo…… 题解列表 2024年04月08日 0 点赞 0 评论 344 浏览 评分:0.0
图像旋转,非常规的简单方法 摘要:解题思路:注意事项:参考代码:m,n = map(int,input().split()) num = [list(map(int,input().split())) for _ in range(…… 题解列表 2024年04月08日 0 点赞 0 评论 171 浏览 评分:0.0
2221: 蓝桥杯算法训练-素因子去重 摘要: #include using namespace std; int main() { long long n; long lo…… 题解列表 2024年04月08日 0 点赞 0 评论 199 浏览 评分:0.0
2228: 蓝桥杯算法训练-Anagrams问题 摘要: #include #include using namespace std; int main() { char a[80],b[80…… 题解列表 2024年04月08日 0 点赞 0 评论 358 浏览 评分:0.0