qorckaqlc01   2년 전

First line is the number of test cases. Followed will be that many number of 5 x 5 board configurations. Input lines will consist of only the characters '.' and 'k'. The '.' character represents an empty space on the board, and the 'k' character represents a knight. There is no blank line between boards in the input.

첫 번째 줄은 테스트 케이스 수입니다. 그 다음 줄은 5 x 5 보드 구성의 개수입니다. 입력 줄은 '.'와 'k'로만 구성됩니다. '.' 문자는 보드의 빈 공간을 나타내고, 'k' 문자는 기사를 나타냅니다. 입력 시 보드와 보드 사이에는 빈 줄이 없습니다.

문제에는 보드와 보드 사이 빈 줄이 없다고 하지만

예제에는 빈 줄이 있고 실제로 보드 사이 빈 줄 입력이 있어야 통과가 됩니다.

댓글을 작성하려면 로그인해야 합니다.