무개념

provide도 안함 ㅋㅋㅋ 그리고 대체 이걸 왜 스트링으로 만든거냐
0점먹인닼ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ

#Correctness : 0.0
-You forgot to write 'provide crazy2val' and your code didn't work
without this. This means you even didn't check your code with self
grader before submission. /-0.5
-You also didn't check the input and output format of this task. The
input format was not a string, but a pair which consists of 'z 'p 'n.
This made your entire code not working./-1.0
-Moreover, you didn't write any code for converting 'z 'p 'n into
decimal numbers. It means your code will not work even if you had fully
understood the input format. /-1.5
I think you didn't even try to understand this question.

#Readability : 0.0
-There was no comment at all, for the functions such as 'square2'.
Nobody but you used that kind of functions, so you had to explain why
you defined that function and what does it do inside your code. /-0.4
-I can't understand why you used so many string functions to deal with
pairs. At least you should have explained it in a clear way. / -0.6
-You wrote most of the statements in one line, which made it very
difficult to read your code. /-0.9

**YOUR CODE**
(define (square2 n) (if (= n 1) 2 (* 2 (square2 (- n 1)))))
(define (crazy2val str)
(define n (string-length str))
(+ (if (equal? + ( substring str (- n 1) n )) (square2 n) (if (equal? 0
(substring str (- n 1) n )) 0 (- 0 (square2 n))))
(crazy2val (substring str 0 (- n 1)))))

**REVISED CODE**
(define (square2 n)
(if (= n 1)
2
(* 2 (square2 (- n 1)))))

(define (crazy2val str)
(define n (string-length str))
(+ (if (equal? + ( substring str (- n 1) n ))
(square2 n)
(if (equal? 0 (substring str (- n 1) n ))
0
(- 0 (square2 n))))
(crazy2val (substring str 0 (- n 1)))))

-Note that statements which have similar roles should have the same
amount of indentation to improve the readability.

-However, you used so many 'if' and it slightly harmed the readability
of your code. Please use 'cond [B E]' instead of so complex 'if- if-
if-' construct. /-0.1
Revert "무개념"

This reverts commit b34ee9b781a4ee90b49e7c29ff9fe8c52305c6ea.