Computer Science, asked by srilakshminallamothu, 14 hours ago

A company has N teams.The i’th team has a total budget of Ai units of money and it has Bi workers in it. Each team has to divide their budget within their workers equally. But for some teams, it's not possible to divide the budget equally.
Therefore, the company have to perform revisions in the teams' budget sizes.

In one revision, to revise the budget of i’th team, the budget of the first i teams has to be increased by 1.

Your task is to find the minimum number of revisions needed so that for each team, equal distribution of their budget among the workers is possible.





A company has N teams.The i’th team has a total budget of Ai units of money and it has Bi workers in it. Each team has to divide their budget within their workers equally. But for some teams, it's not possible to divide the budget equally.
Therefore, the company have to perform revisions in the teams' budget sizes.

In one revision, to revise the budget of i’th team, the budget of the first i teams has to be increased by 1.

Your task is to find the minimum number of revisions needed so that for each team, equal distribution of their budget among the workers is possible.

Answers

Answered by debranjanMajumder
0

Answer:

This education prefers to central board

Explanation:

This education prefers to central board

Similar questions