#hdu1258

hdu1258 Sum It Up (DFS)

ProblemDescriptionGivenaspecifiedtotaltandalistofnintegers,findalldistinctsumsusingnumbersfromthelistthatadduptot.Forexample,ift=4,n=6,andthelistis[4,3,2,2,1,1]...
代码星球 ·2020-10-21