김윤승
가입: 2014년 9월 1일 올린 글: 452 위치: 302동 312-2호
|
올려짐: 2014년9월16일 11:35 주제: 답변입니다. |
|
|
1. 1번 문제는 결과값이 숫자, 2-3번은 string이 되도록 자연스럽게 하시면 됩니다.
2. 생각하신 대로 하시면 됩니다. 결과 함수 자체가 재귀적일 필요는 없고, 내부에 다른 재귀적인 함수를 쓰시면 됩니다.
3. .z 제거는 하지 않으셔도 됩니다.
저희가 숙제마다 자가채점기를 제공할 것이라서 앞으로는 입출력 포맷에 대해서는 이 채점기 코드를 보시면 될 겁니다.
---------------------------------------------------------------------------
1. The return type of 'gcd' is integer, and that of 't2' and 'yanghui' is string.
2. When we say "function XX should be defined recursively," the XX function itself doesn't have to be recursive, as long as there is another recursive function which is used in the XX function.
3. In Problem 7, you don't have to remove '.z' from the result of 'crazy2add' when it happens.
Also, there will be little ambiguity in return formats, because we are going to distribute the self grader for each problem. You can browse the code of the grader in order to check the return format. |
|