There are N servers connected in series.
For each server:
throughput[i].1.cost[i].You are given a total budget B.
Since the servers are connected in series, the overall throughput of the system equals the minimum throughput among all servers.
Determine the maximum overall throughput that can be achieved without exceeding the budget.
N.N integers throughput[i].N integers cost[i].B.Print one integer — the maximum achievable overall throughput.
1 ≤ N ≤ 2 × 10^51 ≤ throughput[i] ≤ 10^91 ≤ cost[i] ≤ 10^91 ≤ B ≤ 10^183
3 5 2
2 1 3
10
5
To make every server have throughput at least 5:
53 times → cost 3 × 3 = 92 times → cost 2 × 2 = 4Target 5 is feasible only if total cost is within budget. Binary searching on the answer gives the maximum feasible throughput.
Nvidia • Pending