Highlights
Task:
The Covid-19 pandemic is raging worldwide, and almost the whole world is under lockdown. Many countries blame China for the pandemic and India is one of them, but China is not accepting it and is also hiding much crucial information about the virus. Indian Government decided to send a Team of ‘K’ elite Detectives to China for a hidden investigation. The government approached Agency X for the Detectives. All the Detectives in Agency X are pros, but they each have different skill levels and each detective is independent to demand different amounts for the work. This amount is the minimum amount for which they would be ready to work( if the government offered less pay then they would reject the offer, but a higher pay is valid). Agency X has a total of N independent detectives under them. The Agency X follow certain rules for the payment to the detectives: 1. Every Detective should be paid in the ratio for their skill corresponding to the other detective’s skills in the team of K people. 2. Every Detective should be paid at least the amount demanded by him/her.
Input
It consists of three lines: Line 1 contains two integers N, K. ‘N’ is the number of Detectives in Agency X. ‘K’ is the size of the Team of Detectives to be formed. Line 2 contains n integers s1 , s2 , s3 , . . . . , sn , where si represents the skill of the detective i. Line 3 contains n integers d1 , d2 , d3 , . . . . . , dn , where di is the amount demanded by detective i.
Output
Print the minimum amount of money required to be paid by the Indian Government to the Agency X, for forming a team of K detectives. Answers should be ceil of the actual of the answer to be considered correct
This Management Assignment has been solved by our Management Experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.
Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.
© Copyright 2026 My Uni Papers – Student Hustle Made Hassle Free. All rights reserved.