题解列表

筛选

Minesweeper (C++代码)

摘要:解题思路:参考代码:#include<bits/stdc++.h> using namespace std;   int  high, width; char Map[103][103]; ……

蓝桥杯算法提高VIP-开灯游戏 (C++代码)

摘要:解题思路:        模拟 + DFS。其中最巧妙的就是如何记录开关的某个组合出现过,当然是 Hash 值啦。参考代码:#include<bits/stdc++.h> /* 一共 112 个组合,……

蓝桥杯算法提高VIP-密码锁 (C++代码)

摘要:解题思路:        BFS + Hash。Hash 用来记录某个状态是否走过。广搜每次都与相邻位置交换入列即可。参考代码:#include<bits/stdc++.h> using names……

姓名排序 (C++代码)

摘要:解题思路:简单理解通俗易懂注意事项:参考代码:#include <iostream> #include <algorithm> using namespace std; int m,n; in……