Cody

Solution 1812956

Submitted on 11 May 2019 by Laszlo Gubicza
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 = 9; y_correct = 1; assert(isequal(Armstrong(x),y_correct))

1 9 9

2   Pass
x = 371; y_correct = 1; assert(isequal(Armstrong(x),y_correct))

3 3 27 7 370 1 371

3   Pass
x = 407; y_correct = 1; assert(isequal(Armstrong(x),y_correct))

3 4 64 0 64 7 407

4   Pass
x = 1634; y_correct = 1; assert(isequal(Armstrong(x),y_correct))

4 1 1 6 1297 3 1378 4 1634

5   Pass
x = 68955; y_correct = 0; assert(isequal(Armstrong(x),y_correct))

5 6 7776 8 40544 9 99593 5 102718 5 105843

6   Pass
x = 548834; y_correct = 1; assert(isequal(Armstrong(x),y_correct))

6 5 15625 4 19721 8 281865 8 544009 3 544738 4 548834

7   Pass
x = 1741725; y_correct = 1; assert(isequal(Armstrong(x),y_correct))

7 1 1 7 823544 4 839928 1 839929 7 1663472 2 1663600 5 1741725

Suggested Problems

More from this Author2