Notebook Distribution SOLUTIONS ECAUG205

Notebook Distribution SOLUTIONS ECAUG205

Cook is an exceptionally kind-hearted individual and he needs to have a foundation occasion and give his note pads to the kids who go to that occasion. Gourmet specialist has a lot of N unmistakable kinds of scratch pad which are numbered from 1 to N with each book containing Ai(1<=i<=n) number of pages separately. The occasion saw a gathering of K youngsters and now its the culinary specialist errand to circulate his scratch pad among them. 
Gourmet expert needs to augment the quantity of pages in every scratch pad with the goal that the youngsters get note pads as thick as could reasonably be expected. Culinary expert needs you to help him in parting the note pads with the goal that the kids leave the occasion joyfully. 
No note pad can have pages from at least 2 unique kinds of the scratch pad. 
Here Notebook type is alluded to the scratch pad of various sizes, page quality or page print. 
We need to keep all children cheerful, So every note pad must have a similar number of the page which is the most extreme conceivable 
First-line will contain T, the quantity of experiments. At that point the experiments follow. 
Each experiment contains a solitary line of info, two whole numbers N,K. 
Next line contains Ai(for I in 1 to N) number of pages in every scratch pad type 
For each Testcase, the yield must contain greatest pages in the new scratch pad 
Imperatives : 
Test Input: 
4 11 
802 743 457 539 
Test Output: 

March Long Challenge 2021 Solutions

April Long Challenge 2021 Solutions

Codechef Long Challenge Solutions

February Long Challenge 2021

1. Frog Sort Solution Codechef

2. Chef and Meetings Solution Codechef

3. Maximise Function Solution Codechef

4. Highest Divisor Solution Codechef

5. Cut the Cake Challenge Solution Codechef

6. Dream and the Multiverse Solution Codechef

7. Cell Shell Solution Codechef

8. Multiple Games Solution Codechef

9. Another Tree with Number Theory Solution Codechef

10. XOR Sums Solution Codechef

11. Prime Game Solution CodeChef

12. Team Name Solution Codechef

January Long Challenge 2021

November Challenge 2020 SOLUTION CodeChef

October Lunchtime 2020 CodeChef SOLUTIONS


Related :

Related :

Leave a Comment

5 × 4 =