Sum It Up POJ 1564 HDU 杭电1258【DFS】

For each test case, first output a line containing ‘Sums of’, the total, and a colon. Then output each sum, one per line; if there are no sums, output the line ‘NONE’. The numbers within each sum must appear in nonincreasing order. A number may be repeated in the sum as many times as it was repeated in the original list. The sums themselves must be sorted in decreasing order based on the numbers appearing in the sum. In other words, the sums must be sorted by their first number; sums with the same first number must be sorted by their second number; sums with the same first two numbers must be sorted by their third number; and so on. Within each test case, all sums must be distince; the same sum connot appear twice.

,就会犯错误,就会有无数次让自己跌倒的机会出现,

Sum It Up POJ 1564 HDU 杭电1258【DFS】

相关文章:

你感兴趣的文章:

标签云: