纪律和规则不只是约束我们,而是在纠正我们的错误,培养我们的良好习惯,所以,我们要规范自己的一言一行。
The discipline and rules not only restrain us, but also correct our mistakes, and develop our good habits. So we have to regulate our behavior.
最后发现其解决方式还是非常简单的(只需要100行Python代码),它基于以下两个想法:约束传播和查找。
It turns out to be quite easy (about 100 lines of [Python] code) using two ideas: constraint propagation and search.
第15、16、17行定义了约束。
应用推荐