首先附上所有代码
#include<iostream>
#include<vector>
#include<iomanip>
#include<sstream>
#include<queue>
using namespace std;
queue<vector<int>> que;
queue<vector<int>> resSet;
void BFS(vector<vector<int>>& rule,int mod);
int main() {
char again = 'Y';
while (again == 'Y' || again == 'y') {
//获取元素方块初始信息
cout << "稻妻石块解密穷举" << endl;
cout << "输入石块数量:" << endl;
int n;
cin >> n;
if (n <= 2 || n>=7)return 0;
cout << "请根据相对位置 选择位置编号(此步骤仅方便后续记忆)" << endl;
cout << "| 1 | 2 | 3 | 4 | 5 |\n" << endl;
cout << "| 6 | 7 | 8 | 9 |10 |\n" << endl;
cout << "|11 |12 |13 |14 |15 |\n" << endl;
cout << "|16 |17 |18 |19 |20 |\n" << endl;
cout << "|21 |22 |23 |24 |25 |\n