← 返回 capitalone 的题目列表Round-robin Server Simulation
类型:online_judge
A round-robin server simulation where packages are assigned to the next available server with remaining capacity, skipping shutdown servers and wrapping around, then returning the highest-index server that handled the most packages.
Example
Input
servers: [10, 10, 0, 10], packages: 25
Output
1