Cody

# Problem 2690. Armstrong Number

Solution 1742036

Submitted on 4 Mar 2019 by Maryam Majidi
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))

y = 0 x = '9' y = 9 y = 1

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

y = 0 x = '371' y = 27 y = 370 y = 371 y = 1

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

y = 0 x = '407' y = 64 y = 64 y = 407 y = 1

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

y = 0 x = '1634' y = 1 y = 1297 y = 1378 y = 1634 y = 1

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

y = 0 x = '68955' y = 7776 y = 40544 y = 99593 y = 102718 y = 105843 y = 0

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

y = 0 x = '548834' y = 15625 y = 19721 y = 281865 y = 544009 y = 544738 y = 548834 y = 1

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

y = 0 x = '1741725' y = 1 y = 823544 y = 839928 y = 839929 y = 1663472 y = 1663600 y = 1741725 y = 1