依旧Lisp解题
2026-10-11 09:15:29
发布于:上海
1阅读
0回复
0点赞
(defun max_value (a b))
(let f a)
(cond
(< f b)(setf f b)
(t setf f a)))
(defun min_value (a b))
(let f a)
(cond
(> f b)(setf f b)
(t setf f a)))
(let a (read_line))
(let b (read-line))
(let res1 (callfunc min_value(a b)))
(format t "min = ~a~%" res1)
(let res2 (callfunc max_value))
(format t "max = ~a~%" res2)
本人初学,语法错勿喷
这里空空如也

有帮助,赞一个