Cody

Solution 484014

Submitted on 7 Aug 2014 by Evan
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

Test Status Code Input and Output
1   Pass
%% n = 5; S = 40; assert(isequal(FibSumSquares(n),S))

S = 1 1 2 S = 1 1 2 3 S = 1 1 2 3 5 ans = 40

2   Pass
%% n = 11; S = 12816; assert(isequal(FibSumSquares(n),S))

S = 1 1 2 S = 1 1 2 3 S = 1 1 2 3 5 S = 1 1 2 3 5 8 S = 1 1 2 3 5 8 13 S = 1 1 2 3 5 8 13 21 S = 1 1 2 3 5 8 13 21 34 S = 1 1 2 3 5 8 13 21 34 55 S = 1 1 2 3 5 8 13 21 34 55 89 ans = 12816