445 teams scored 40784 points on this task, for a maximum score of 100, an average score of 92 and a median score of 100.
The Library of Binaria faced some organizational challenges, so they created a new set of `Rules' for storing books. They have large shelves with ample space above them, and the books are categorized by topic. Each book belongs to exactly one topic. To follow these new `Rules', they want to organize the books on the shelves as follows: You are provided with the total number of books for each topic. The goal is to determine whether the books can be packed according to these `Rules'. If it is impossible, calculate the minimum number of additional books the library has to buy to achieve proper storage. You don't need to break down the number of books per topic -- it is enough to provide the overall sum. Create a program to assist Chen-Ben Chuchul, the librarian of Binaria, determining the total number of books the library has to order to properly organize their collection on the shelves.