Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
100题了,纪念一下,顺带给大家说说这题注意的地方~我是dfs过的,求和果断给力,不过去掉重复挺麻烦,我是用一个数组记录之前所有的结果,然后每次输出前都比较一下,如果重复就不输出 不一定是最好的方法,但是可以一试~ 给大家这组数据: 8 8 4 4 2 2 2 2 1 1 输出: Sum of 8: 4+4 4+2+2 2+2+2+2 2+2+2+1+1 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator