prologito
searching PlanetScale…
- 1.▲
- 2.▲
- 3.▲
- 4.▲
- 5.▲
- 6.▲
3 ms·
- 1.▲
Given a list of numbers L, use operations +,-,*,/ to obtain a result of Result. Use each number of L exactly one time. Code:
j24([X],R,H) :- !, X =:= R,H=X.
j24(L,R,H) :- select(X1,L,L1), x2(X1,Op,X2,R),
j24(L1,X2,H1),H