Cody

Solution 2279949

Submitted on 14 May 2020
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 = 2; assert(isequal(OctoberfestFestival(x),y_correct))

tb = 1 tb = 1 1 k = 3 tnb = 2

2   Fail
x = 5; y_correct = 20; assert(isequal(OctoberfestFestival(x),y_correct))

tb = 1 tb = 1 1 k = 3 tb = 1 1 2 k = 4 tb = 1 1 2 3 k = 5 tb = 1 1 2 3 5 k = 6 tnb = 12

Assertion failed.

3   Fail
x = 10; y_correct = 232; assert(isequal(OctoberfestFestival(x),y_correct))

tb = 1 tb = 1 1 k = 3 tb = 1 1 2 k = 4 tb = 1 1 2 3 k = 5 tb = 1 1 2 3 5 k = 6 tb = 1 1 2 3 5 8 k = 7 tb = 1 1 2 3 5 8 13 k = 8 tb = 1 1 2 3 5 8 13 21 k = 9 tb = 1 1 2 3 5 8 13 21 34 k = 10 tb = 1 1 2 3 5 8 13 21 34 55 k = 11 tnb = 143

Assertion failed.