题解列表

筛选

map哈希存储

摘要:参考代码:#include<bits/stdc++.h> using namespace std; int main() { int n; while(cin>>n) { if……

[LETTERS] BFS 配合 map容器

摘要:## unordered_map 的.count函数-用于查找是否出现过该状态,是返回1; ```cpp #include #define ULL unsigned long long #d……

筛素数最全模板

摘要:###暴力筛素数(O(sqrt(n))) #include #include using namespace std; bool primes(int x) { ……

单调栈(可做模板)

摘要: ##优化版(O(n)) ###手写栈版 #include #include using namespace std; const int N = 5000……

[蓝桥杯2017年第八届真题-九宫幻方] DFS

摘要:## 思路:先找出未用的数字有哪些,再进行深搜找出全排列的数,然后放入九宫格中,最后进行检测看是否符合题意 ```cpp #include #define ULL unsigned long l……