첫 번째 문장을 자세히 읽어보면, "while leaving the first and last letters in their places"라고 쓰여 있습니다. 따라서 단어의 처음과 마지막 문자를 잘 고려해야 합니다. 단어의 모든 문자의 위치가 뒤섞이지 않음에 주의해야 합니다.
input:
1
ihtaetihssiht
5
i
really
hate
this
shit
expected:
i hate this shit
wrong answer:
ambiguous
kcits970 1년 전
첫 번째 문장을 자세히 읽어보면, "while leaving the first and last letters in their places"라고 쓰여 있습니다. 따라서 단어의 처음과 마지막 문자를 잘 고려해야 합니다. 단어의 모든 문자의 위치가 뒤섞이지 않음에 주의해야 합니다.