灯下 登录
计算机科学 / SICP / 2.2.3 Sequences as Conventional Interfaces

Exercise 2.41 · 习题

Exercise 2.41: Write a procedure to find all

ordered triples of distinct positive integers i, j, and k less than

or equal to a given integer n that sum to a given integer s.

练习 2.41:写一个过程,找出所有满足如下条件的不同正整数有序三元组 i、j、k:各值均不大于给定整数 n,且三者之和等于给定整数 s。