Required to solve the problem with the following data:
- A list of limited number of integers (up to 100), for example [102, 154, 310, 140, 250, 70, 120]
- Number like 700
These data need to find the only set of the n-th number of the numbers from the list whose sum is closest to a given number or equal to it.
Or need description of the algorithm, or, at best, ready-made solution (preferably python).