Cody

Solution 1719733

Submitted on 3 Feb 2019 by Alfonso Nieto-Castanon
  • Size: 13
  • This is the leading solution.
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
N = 384; a_correct = 42; assert(isequal(age(N),a_correct))

2   Pass
N = 366; a_correct = 42; assert(isequal(age(N),a_correct))

3   Pass
N = 381; a_correct = 39 assert(isequal(age(N),a_correct))

a_correct = 39

4   Pass
N = 302; a_correct = 32; assert(isequal(age(N),a_correct))

5   Pass
N = 389; a_correct = 47; assert(isequal(age(N),a_correct))