Cody

Solution 1928415

Submitted on 10 Sep 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   Pass
t1=1; r=1; n=7; y_correct = 7; assert(isequal(your_fcn_name(t1,r,n),y_correct))

n = 7 y = 7

2   Fail
t1=10; r=10; n=5; y_correct = 111110; assert(isequal(your_fcn_name(t1,r,n),y_correct))

n = 50 n = 500 n = 5000 n = 50000 n = 500000 n = 5000000 n = 50000000 n = 500000000 n = 5.0000e+09 n = 5.0000e+10 y = 5.0000e+10

Assertion failed.

3   Fail
t1=7; r=3; n=5; y_correct = 847; assert(isequal(your_fcn_name(t1,r,n),y_correct))

n = 15 n = 45 n = 135 n = 405 n = 1215 n = 3645 n = 10935 y = 10935

Assertion failed.