1
3
你得到了正确的答案。
与此相同(从底部数楼层)
如果要加快速度,可以交错生成和测试:
旧版本:869727推断,0.533秒0.533 CPU 新版本:310推论,0.000秒0.000 CPU CLP(FD)解决方案:61356个推论,0.011秒0.011 CPU |
2
3
CLP(FD)可用于此谜题:
这就给出了解决方案(不幸的是2次!) 编辑 现在,只有一个解决方案!
|
Sam · 如何在Swi Prolog中对元组列表排序 6 年前 |
davo · 序言:delete谓词如何提供列表的开头 6 年前 |
Zeph · 在Prolog中添加到列表列表 6 年前 |
Deeps · 在prolog中截断浮点数 6 年前 |
Anthony Gauthier · 分析不同规则中的规则体 6 年前 |
quixote · 如何在swi prolog中删除命令历史记录 6 年前 |
Walker · Prolog比较列表[关闭] 6 年前 |
user7303261 · 在prolog中运行main 6 年前 |
MasterYork42 · Prolog逻辑难题不起作用? 6 年前 |