Company: teradata

Difficulty: medium

Problem Statement

Minimum Cost to Hire K Workers Given qualities and minimum wages, hire exactly K workers. All selected workers receive a common wage-to-quality ratio, and each receives at least their minimum wage. Print the minimum total cost. Input Format The first line contains n and K. The second line contains n qualities. The third line contains n minimum wages. Output Format Print the cost with sufficient precision. Constraints - 1 <= K <= n <= 10000

More teradata OA questionsInterview experiences