UVa810 - A Dicey Problem
#include #include #include using namespace std;const int D[4][2] = {-1, 0, 1, 0, 0, -1, 0, 1};const int N = 15;char str[25];int n, m, sx, sy, u, f, to[7][7], g[N][N];int vis[N][N][7][7];str