MCPcopy Create free account
hub / github.com/MathProgrammer/CodeForces / find_minimum

Function find_minimum

C Programs/C Programs - 4/Random_Teams.c:29–37  ·  view source on GitHub ↗

The minimum is obtained when every team has at most one more than the minimum number of people. If there is a team for which the difference between the number of people and the minimum number of people is more than 1, we can reduce the friendships by transfering a person from that team to the minimum team. In this arrangement, the friendships can't be reduced. Transfering from two piles with th

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected