Prolog sublist sum is equal to

前端 未结 0 1526
我寻月下人不归
我寻月下人不归 2020-12-01 14:49

I want to write a predicate in prolog which is correct when in a given list you can find three consecutive numbers whose sum is equal to Sum. For example: ?- sum([1,4, -2,13

相关标签:
回答
  • 消灭零回复
提交回复
热议问题