문자열이 주어지면 모든 왼쪽 큰 따옴표를 두 개의 백틱으로 바꾸고 모든 오른쪽 큰 따옴표를 두 개의 작은 따옴표로 바꾸십시오.
왼쪽 따옴표는 따옴표를 시작하는 따옴표를 의미합니다. 오른쪽 따옴표는 따옴표를 끝내는 따옴표를 의미합니다. 따옴표는 중첩 할 수 없습니다. 문자열에 짝수의 큰 따옴표가 있다고 가정 할 수 있습니다.
예
입력:
"To be or not to be," quoth the Bard, "that
is the question".
The programming contestant replied: "I must disagree.
To `C' or not to `C', that is The Question!"
산출:
``To be or not to be,'' quoth the Bard, ``that
is the question''.
The programming contestant replied: ``I must disagree.
To `C' or not to `C', that is The Question!''