Distributed Contractor Allocation

A distributed platform has n contractors. Contractor i has a quality score quality[i] > 0 and a minimum expected wage wage[i] > 0. The platform must hire exactly k contractors.

Pay must be proportional to quality: if the hired set is S, the platform chooses a common rate r and pays contractor j in S an amount r * quality[j]. Fairness requires r * quality[j] >= wage[j] for every hired contractor, so r >= max_{j in S} wage[j] / quality[j]. The cheapest feasible rate for a fixed set is r = maxRatio(S), and the total cost for that set is r * sumQuality(S).

Choose k contractors to minimize total cost and return that minimum total cost.

Source (authentic LC857): LeetCode 857, Minimum Cost to Hire K Workers. Answers within 1e-5 of the actual answer will be accepted (absolute or relative error).

Central blocker (this platform instance): read-only test_cases.json fixtures currently encode expected values as scaled integers (floor(minTotalCost * 1_000_000)), and shared comparison/transport/tooling is outside this worker's scope. Restoring full authentic float execution requires central fixture migration and comparator/native transport support for 1e-5 tolerance. This worker restores the authentic owned contract (schema, prose, examples, starter, all approaches in all 6 languages) and provides an independent unexecuted floating fixture reference proposal; orchestrator approval/integration is required.

Examples
Input: [[10,20,5],[70,50,30],2]
Output: 105000000
Hints

Distributed Contractor Allocation

A distributed platform has `n` contractors. Contractor `i` has a quality score `quality[i] > 0` and a minimum expected wage `wage[i] > 0`. The platform must hire exactly `k` contractors.