Cody

Problem 44554. The maximum sum of squares (testing)

Solution 1489745

Submitted on 13 Apr 2018 by ddd ppp
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
x = 1; y_correct = 1; assert(isequal(Max_of_square_sum(x),y_correct))

max = 6548191 n = 10000 y = 1

2   Pass
x=111111 y_correct = 68; assert(isequal(Max_of_square_sum(x),y_correct))

x = 111111 max = 6548191 n = 10000 y = 68

3   Pass
x=6548191 y_correct = 269; assert(isequal(Max_of_square_sum(x),y_correct))

x = 6548191 max = 6548191 n = 10000 y = 269

4   Pass
x=789861684 y_correct = 1332; assert(isequal(Max_of_square_sum(x),y_correct))

x = 789861684 max = 6548191 n = 10000 y = 1332

Suggested Problems

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!