#include <iostream> #include <cstring> using namespace std; const int N = 6, n = 5; int g[N][N]; int a, b, x, y; void turn( ){ int tmp[N][N]; memcpy(tmp, g, sizeof tmp); for(int i = 0; i < b; i ++) for(int j = 0, k = b - 1; j < b; j ++, k --) tmp[i]...