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

Function find_maximum

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

This is obtained when we place one person in m-1 teams each and place all the remaining people in the last team. In any other arrangement, the number of friends can be increased by transfering a person from a given team to the team with the maximum number of people. In this arrangement, no such transfer can take place. This yields the maximum number of friendships. Detailed proofs given in the '

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected