Sponsored
Use these hints if you're stuck. Try solving on your own first.
Use binary search to find the maximum number of servers that can be upgraded for each data center separately.
Solve with full IDE support and test cases