Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

100题了,纪念一下,顺带给大家说说这题注意的地方~

Posted by zhanggt1994 at 2013-04-13 02:59:21 on Problem 1564
我是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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator