Pretty classic greedy problem to work on. Here is how to approach it:
1. "the smallest team is as large as possible." actually means, team members should be distributed as average as possible
2. When ...
B. Teams Formation
This time the Berland Team Olympiad in Informatics is held in a remote city that can only be reached by one small bus. Bus...