Cody

Solution 1887077

Submitted on 29 Jul 2019
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   Fail
x = 13; y_correct = 42; % coincidence? assert(isequal(a(x),y_correct))

Assertion failed.

2   Fail
x = 1; y_correct = 0; assert(isequal(a(x),y_correct))

Assertion failed.

3   Fail
x = 3; y_correct = 2; assert(isequal(a(x),y_correct))

Assertion failed.

4   Fail
x = 22; y_correct = 121; assert(isequal(a(x),y_correct))

Assertion failed.

5   Fail
x = 40; y_correct = 400; assert(isequal(a(x),y_correct))

Assertion failed.

6   Fail
x = 53; y_correct = 702; assert(isequal(a(x),y_correct))

Assertion failed.

7   Fail
x = 13; y_correct = 42; assert(isequal(a(x),y_correct))

Assertion failed.

8   Fail
x = 81; y_correct = 1640; assert(isequal(a(x),y_correct))

Assertion failed.

9   Fail
x = 193; y_correct = 9312; assert(isequal(a(x),y_correct))

Assertion failed.

10   Fail
x = 222; y_correct = 12321; assert(isequal(a(x),y_correct))

Assertion failed.

11   Fail
x = 253; y_correct = 16002; assert(isequal(a(x),y_correct))

Assertion failed.

12   Fail
x = 1e3; y_correct = 25e4; assert(isequal(a(x),y_correct))

Assertion failed.

13   Fail
x = 2015; y_correct = 1015056; assert(isequal(a(x),y_correct))

Assertion failed.

14   Fail
x = 4971; y_correct = 6177710; assert(isequal(a(x),y_correct))

Assertion failed.

15   Fail
x = 6638; y_correct = 11015761; assert(isequal(a(x),y_correct))

Assertion failed.

16   Fail
x = 9e3; y_correct = 2025e4; assert(isequal(a(x),y_correct))

Assertion failed.

17   Fail
x = 1956; y_correct = 956484; assert(isequal(a(x),y_correct))

Assertion failed.