Sicily 1050. Numbers & Letters

来源:互联网 发布:中国软件测评中心 编辑:程序博客网 时间:2024/05/17 22:07

这道题也没什么好说的,直接DFS就可以了,只是要注意一句话“The aim is to use some arithmetic on (some of) the five numbers to form the target number.”,注意黑体的some of。

 

代码(几乎没剪枝):

 

原创粉丝点击