摘要:
https://www.acwing.com/problem/content/description/4274/ #include<bits/stdc++.h> #include<string.h> using namespace std; const int N = 1010; int post[ 阅读全文
摘要:
https://www.acwing.com/problem/content/description/1545/ #include <iostream> #include <cstring> #include <set> #include <stack> using namespace std; s 阅读全文
摘要:
https://www.acwing.com/problem/content/1543/ #include <iostream> #include <cstring> #include <vector> #include <algorithm> using namespace std; const 阅读全文
摘要:
https://www.acwing.com/problem/content/1537/ 思路: 用一个栈来模拟整个过程,注意什么时候应该pop,如果判断结果。 #include <iostream> #include <cstring> #include <stack> using namespa 阅读全文
摘要:
https://www.acwing.com/problem/content/1583/ 注意: 三维的时候有六个方向。 #include <iostream> #include <cstring> #include <queue> using namespace std; const int M 阅读全文