There are N employees. The employer assigns them certain projects in group and they were graded on the basis of the error score. Since the error became too high, the employer decided to give some bonus projects to the group members. If a person is doing the extra project, then the error of that particular person decreases by P, and the error of all other group members decreases by Q. Find the minimum number of projects to be taken so that the error of all person’s in the group is reduced to 0. An array of size N with error score was given along with P,Q.
Plz anyone gives ideas.