singhnavneet
New member
- Joined
- Sep 27, 2024
- Messages
- 1
- Thread Author
- #1
Problem Statement
As Google headquarters have more and more workers, they decided to divide the departments in the headquarters into two groups and stagger their lunch breaks.
Google headquarters have N departments, and the number of people in the i-th department (1≤i≤N)(1≤i≤N) is Ki.
When assigning each department to Group A or Group B, having each group take lunch breaks at the same time, and ensuring that the lunch break times of Group A and Group B do not overlap, find the minimum possible value of the maximum number of people taking a lunch break at the same time.
In other words, find the minimum possible value of the larger of the following: the total number of people in departments assigned to Group A. and the total number of people in departments assigned to Group B.
As Google headquarters have more and more workers, they decided to divide the departments in the headquarters into two groups and stagger their lunch breaks.
Google headquarters have N departments, and the number of people in the i-th department (1≤i≤N)(1≤i≤N) is Ki.
When assigning each department to Group A or Group B, having each group take lunch breaks at the same time, and ensuring that the lunch break times of Group A and Group B do not overlap, find the minimum possible value of the maximum number of people taking a lunch break at the same time.
In other words, find the minimum possible value of the larger of the following: the total number of people in departments assigned to Group A. and the total number of people in departments assigned to Group B.
Constraints
Last edited: