首页 > TAG信息列表 > 1536B

1536B - Prinzessin der Verurteilung

BFS: 暴力枚举所有情况即可 #include <iostream> #include <queue> using namespace std; int n; string s; string bfs () { queue <string> q; for (int i = 0;i < 26;i++) { string t; t += i+'a'; q.push (t); } while (!q.empty ()) {