Cody

Solution 1818662

Submitted on 17 May 2019 by Dani Péter
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 = 35431; y_correct = 256; assert(isequal(sq_sum(x),y_correct))

s = '35431' y = 0 y = 3 y = 8 y = 12 y = 15 y = 16

2   Pass
x = -431; y_correct = 64; assert(isequal(sq_sum(x),y_correct))

s = '-431' y = 0 y = 4 y = 7 y = 8