摘要: 看大佬们dfs一遍就出结果,蒟蒻的我dfs了三遍,当然这题也可以用bfs做,但是dfs不用队列代码短一些。 #include <iostream> #include <vector> #include <algorithm> using namespace std; const int N = 40 阅读全文
posted @ 2022-06-02 08:00 cxy8 阅读(29) 评论(0) 推荐(0)