Please note that the results of Problem 21 returned by BSOJ currently are for reference only and are not final. The final scores will be recalculated after the due date with a different test data set.
There is an error in the 4th example in the problem statement. The input should be:
3 6 1 1 1 1 1 1 1 a E A X 1 1 1 1 1 1 1That is change 5 to 6.
Please note that you can output any valid answer even if there can be many different ones. You do not have to output the same one as in the X.out files.
You can modify the following code to read the maze.
int n, m; char map[100][100]; int main() { scanf("%d%d", &n, &m); for (int i = 0; i < n; i++) { for (int j = 0; j < m; j++) { scanf(" %c", &map[i][j]); } } }