Answered step by step
Verified Expert Solution
Question
1 Approved Answer
this is the code written side of it pls solve asap I'll provide best review tks Question 2 Max. score: 50.00 Intelligent Robots Krisha is
this is the code written side of it
pls solve asap I'll provide best review tks
Question 2 Max. score: 50.00 Intelligent Robots Krisha is very much fascinated about Robots, so she bought N robots. Each robot is having some Intelligence, lets say the i' th robot is having Intelligence P; While she was playing with robots, she found a way to transfer the Intelligence of one robot to another. In this process she observed that, if X amount of Intelligence is transferred from th robot then, K percent of Intelligence which is getting tranferred gets dissipated in this process. So she need your help to make the Intelligence of all Robots equal and maximum possible. to sth Input: First line contains T, denoting the number of Test cases. First line of each test case contains two space separated integers N and K, denoting the Number of Robots and the Percentage of power getting dissipated. P1, P2, Pz......,P PN denoting the initial Intelligence of each Robots. Output: For each test case, print a single line float value (round to 4 decimal places) denoting the the maximum Intelligence of each robots. Constraints: 1Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started