Lang:G++
Edit12345678910111213141516171819202122232425262728293031#include <bits/stdc++.h>using namespace std;const int maxn = 10;int v[3][maxn][maxn];int vis[maxn][maxn];char str[5];int dx[] = { 2, 2, -2, -2, 1, 1, -1, -1};int dy[] = { 1, -1, 1, -1, 2, -2, 2, -2};typedef struct Node{int x, y;int step;Node(){x = y = step = 0;}Node(int x, int y, int step){this->x = x;this->y = y;this->step = step;}Node(const Node& node){this->x = node.x;this->y = node.y;this->step = node.step;}}Node;