Cody

# Problem 2061. Narcissistic number ?

Solution 1465013

Submitted on 17 Mar 2018 by Philipp Doblhofer
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 = 1; y_correct = true; assert(isequal(isnarcissistic(x),y_correct))

str = '1' y = 1

2   Pass
x = 9; y_correct = true; assert(isequal(isnarcissistic(x),y_correct))

str = '9' y = 9

3   Pass
x = 10; y_correct = false; assert(isequal(isnarcissistic(x),y_correct))

str = '10' y = 1

4   Pass
x = 99; y_correct = false; assert(isequal(isnarcissistic(x),y_correct))

str = '99' y = 162

5   Pass
x = 152; y_correct = false; assert(isequal(isnarcissistic(x),y_correct))

str = '152' y = 134

6   Pass
x = 153; y_correct = true; assert(isequal(isnarcissistic(x),y_correct))

str = '153' y = 153

7   Pass
x = 154; y_correct = false; assert(isequal(isnarcissistic(x),y_correct))

str = '154' y = 190

8   Pass
x = 371; y_correct = true; assert(isequal(isnarcissistic(x),y_correct))

str = '371' y = 371

9   Pass
x = 370; y_correct = true; assert(isequal(isnarcissistic(x),y_correct))

str = '370' y = 370

10   Pass
x = 1634; y_correct = true; assert(isequal(isnarcissistic(x),y_correct))

str = '1634' y = 1634

11   Pass
x = 8207; y_correct = false; assert(isequal(isnarcissistic(x),y_correct))

str = '8207' y = 6513

12   Pass
x = 9474; y_correct = true; assert(isequal(isnarcissistic(x),y_correct))

str = '9474' y = 9474

13   Pass
x = 9926315; y_correct = true; assert(isequal(isnarcissistic(x),y_correct))

str = '9926315' y = 9926315

14   Pass
x = 88593477; y_correct = true; assert(isequal(isnarcissistic(x),y_correct))

str = '88593477' y = 88593477

15   Pass
x = 9800817; y_correct = true; assert(isequal(isnarcissistic(x),y_correct))

str = '9800817' y = 9800817

16   Pass
x = 54748; y_correct = true; assert(isequal(isnarcissistic(x),y_correct))

str = '54748' y = 54748

17   Pass
x = 4679307774; y_correct = true; assert(isequal(isnarcissistic(x),y_correct))

str = '4679307774' y = 4.6793e+09

18   Pass
x = 472335975; y_correct = true; assert(isequal(isnarcissistic(x),y_correct))

str = '472335975' y = 472335975

19   Pass
x = 32164049650; y_correct = true; assert(isequal(isnarcissistic(x),y_correct))

str = '32164049650' y = 3.2164e+10

20   Pass
x = 32164049651; y_correct = true; assert(isequal(isnarcissistic(x),y_correct))

str = '32164049651' y = 3.2164e+10

21   Pass
x = 32164049652; y_correct = false; assert(isequal(isnarcissistic(x),y_correct))

str = '32164049652' y = 3.2164e+10