Problem 42785. Choose group with people
Solution Stats
Problem Comments
-
3 Comments
Please fix the test suite so rounding isn't required to get the correct answer for x=25.
I agree with James: for test 3 the true answer is 623360743125120. It should also be clarified in the problem statement that the function input "x" corresponds to n² (not n). Lastly, it is better not to format the problem statement as if it were code.
I agree with everyone. My guess is that the author was using the short format for numbers and just copied 6.2336e+14. If you write format long and do the calculation again, you may see the correct answer.
Problem Recent Solvers20
Suggested Problems
-
Project Euler: Problem 6, Natural numbers, squares and sums.
1507 Solvers
-
Calculate the Hamming distance between two strings
212 Solvers
-
Simple equation: Annual salary
3995 Solvers
-
Matrix rotation as per given angle
97 Solvers
-
141 Solvers
More from this Author5
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!