#include using namespace std; int board[6][6]; char name[7] = "ABCDEF"; char path[6]; void abc(int now, int lev) { int cnt = 0; for (int i = 0; i < 6;i++) { if (board[now][i] == 1) { path[lev] = name[i]; abc(i, lev+1); path[lev] = 0; } else { cnt++; } } if (cnt == 6) { cout board[i][j]; } } path[0] = name[0]; abc(0, 1); } 입력 예제 0 1 1 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ..