dotorya   2년 전

문제의 출력 설명이 잘못되어 있습니다. 간단하게 요약하자면,

- 문제에서는 word number와 full stop 뒤에 2개의 space를 넣을 것을 요구하고 있지만, 사실은 word number가 두 자리 수인 경우 1개의 space만을 넣어야 합니다.

- 문제에서는 Across와 Down part 사이사이에도 빈 줄을 하나씩 넣을 것을 요구하고 있지만, 실제로는 테스트케이스 사이에만 넣어야 합니다.

따라서, 출력 부분을 다음과 같이 수정해 주세요.

For each crossword, the output will start with a line containing “Crossword puzzle <cwnum>” where <cwnum> is a running number starting at 1, followed by a form showing the clue number and length for both across and down clues. Each form begins with the word ‘Across’ or ‘Down’ as appropriate, followed by a line for each across or down word that appears in the crossword. Each line begins with the word number with no preceding spaces followed by a full stop, 1-2 spaces (if word number is one-digit number use 2 spaces, otherwise use 1 space), an open parenthesis (‘(‘), the length of the word with no preceding spaces and a closing parenthesis (‘)’). Leave one blank line between successive crosswords.

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