Greedy Gift Givers
A group of NP (2 ≤ NP ≤ 10) uniquely named friends has decided to exchangegifts of money. Each of these friends might or might not give some money to anyor all of the other friends. Likewise, each friend might or might not receivemoney from any or all of the other friends. Your goal in this problem is todeduce how much more money each person gives than they receive.
The rules for gift-giving are potentially different than you might expect.Each person sets aside a certain amount of money to give and divides this moneyevenly among all those to whom he or she is giving a gift. No fractional moneyis available, so dividing 3 among 2 friends would be 1 each for the friendswith 1 left over -- that 1 left over stays in the giver's "account".
In any group of friends, some people are more giving than others (or atleast may have more acquaintances) and some people have