PROBLEM LINK:
Author: Akshat Jain
Tester: Ankit Kathuria
Editorialist: Akshat Jain
DIFFICULTY:
EASY-MEDIUM
PREREQUISITES:
Interest in Coding, Arrays, setprecision, Root Mean Square.
PROBLEM:
Finding the problem is the first task based on the input, output format and exe file provided. Then think the logic and code the same.
QUICK EXPLANATION:
The task in this problem is to find the root mean square of the list of values provided.
EXPLANATION:
• The first input is the number of test cases.
• Then the array is to be inputted and root mean square value is to be found.
• This can be done by first squaring all the values available, adding them and calculating the square root of the sum.
• Finally the answer is to be displayed correct upto 2 decimal places (using functions like setprecision in c++).
AUTHOR’S AND TESTER’S SOLUTIONS:
Author’s solution can be found here.
Tester’s solution can be found here.