枚举
goto_1600
我何来寂寞,哪有寂寞可言。
展开
-
枚举
题目 #include<iostream> #include<cstring> #include<algorithm> using namespace std; const int N=6; char g[N][N],back[N][N]; int dx[5]={0,1,0,-1,0},dy[5]={1,0,-1,0,0}; void turn(int x,...原创 2020-02-22 15:36:32 · 201 阅读 · 0 评论 -
飞行员兄弟
题目 #include<iostream> #include<vector> #include<cstring> using namespace std; char g[5][5],backup[5][5]; typedef pair<int,int> PII; void turn_one(int x,int y) { if(g[x][y...原创 2020-02-22 15:34:30 · 209 阅读 · 0 评论