there n worker you give integer array quality wage qualityi quality ith worker wagei minimum wage expectation ith workerWe want hire exactly k worker form pay group to hire group k worker pay accord follow rulesevery worker pay group pay ratio quality compare worker pay groupevery worker pay group pay minimum wage expectationGiven integer k return money need form pay group satisfy condition Answers 105 actual answer accept Example 1input quality 10205 wage 705030 k 2output 10500000explanation we pay 70 0th worker 35 2nd workerExample 2input quality 3110101 wage 48227 k 3output 3066667explanation we pay 4 0th worker 1333333 2nd 3rd worker separately constraintsn qualitylength wagelength1 k n 1041 qualityi wagei 104