Cody

# Problem 2061. Narcissistic number ?

Solution 2286709

Submitted on 16 May 2020
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 = 1; y_correct = true; assert(isequal(isnarcissistic(x),y_correct))

m = 0

Output argument "y" (and maybe others) not assigned during call to "isnarcissistic". Error in Test1 (line 3) assert(isequal(isnarcissistic(x),y_correct))

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

m = 0

Output argument "y" (and maybe others) not assigned during call to "isnarcissistic". Error in Test2 (line 3) assert(isequal(isnarcissistic(x),y_correct))

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

m = 1 m = 0

Output argument "y" (and maybe others) not assigned during call to "isnarcissistic". Error in Test3 (line 3) assert(isequal(isnarcissistic(x),y_correct))

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

m = 9 m = 0

Output argument "y" (and maybe others) not assigned during call to "isnarcissistic". Error in Test4 (line 3) assert(isequal(isnarcissistic(x),y_correct))

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

m = 15 m = 1 m = 0

Output argument "y" (and maybe others) not assigned during call to "isnarcissistic". Error in Test5 (line 3) assert(isequal(isnarcissistic(x),y_correct))

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

m = 15 m = 1 m = 0

Output argument "y" (and maybe others) not assigned during call to "isnarcissistic". Error in Test6 (line 3) assert(isequal(isnarcissistic(x),y_correct))

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

m = 15 m = 1 m = 0

Output argument "y" (and maybe others) not assigned during call to "isnarcissistic". Error in Test7 (line 3) assert(isequal(isnarcissistic(x),y_correct))

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

m = 37 m = 3 m = 0

Output argument "y" (and maybe others) not assigned during call to "isnarcissistic". Error in Test8 (line 3) assert(isequal(isnarcissistic(x),y_correct))

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

m = 37 m = 3 m = 0

Output argument "y" (and maybe others) not assigned during call to "isnarcissistic". Error in Test9 (line 3) assert(isequal(isnarcissistic(x),y_correct))

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

m = 163 m = 16 m = 1 m = 0

Output argument "y" (and maybe others) not assigned during call to "isnarcissistic". Error in Test10 (line 3) assert(isequal(isnarcissistic(x),y_correct))

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

m = 820 m = 82 m = 8 m = 0

Output argument "y" (and maybe others) not assigned during call to "isnarcissistic". Error in Test11 (line 3) assert(isequal(isnarcissistic(x),y_correct))

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

m = 947 m = 94 m = 9 m = 0

Output argument "y" (and maybe others) not assigned during call to "isnarcissistic". Error in Test12 (line 3) assert(isequal(isnarcissistic(x),y_correct))

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

m = 992631 m = 99263 m = 9926 m = 992 m = 99 m = 9 m = 0

Output argument "y" (and maybe others) not assigned during call to "isnarcissistic". Error in Test13 (line 3) assert(isequal(isnarcissistic(x),y_correct))

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

m = 8859347 m = 885934 m = 88593 m = 8859 m = 885 m = 88 m = 8 m = 0

Output argument "y" (and maybe others) not assigned during call to "isnarcissistic". Error in Test14 (line 3) assert(isequal(isnarcissistic(x),y_correct))

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

m = 980081 m = 98008 m = 9800 m = 980 m = 98 m = 9 m = 0

Output argument "y" (and maybe others) not assigned during call to "isnarcissistic". Error in Test15 (line 3) assert(isequal(isnarcissistic(x),y_correct))

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

m = 5474 m = 547 m = 54 m = 5 m = 0

Output argument "y" (and maybe others) not assigned during call to "isnarcissistic". Error in Test16 (line 3) assert(isequal(isnarcissistic(x),y_correct))

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

m = 467930777 m = 46793077 m = 4679307 m = 467930 m = 46793 m = 4679 m = 467 m = 46 m = 4 m = 0

Output argument "y" (and maybe others) not assigned during call to "isnarcissistic". Error in Test17 (line 3) assert(isequal(isnarcissistic(x),y_correct))

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

m = 47233597 m = 4723359 m = 472335 m = 47233 m = 4723 m = 472 m = 47 m = 4 m = 0

Output argument "y" (and maybe others) not assigned during call to "isnarcissistic". Error in Test18 (line 3) assert(isequal(isnarcissistic(x),y_correct))

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

m = 3.2164e+09 m = 321640496 m = 32164049 m = 3216404 m = 321640 m = 32164 m = 3216 m = 321 m = 32 m = 3 m = 0

Output argument "y" (and maybe others) not assigned during call to "isnarcissistic". Error in Test19 (line 3) assert(isequal(isnarcissistic(x),y_correct))

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

m = 3.2164e+09 m = 321640496 m = 32164049 m = 3216404 m = 321640 m = 32164 m = 3216 m = 321 m = 32 m = 3 m = 0

Output argument "y" (and maybe others) not assigned during call to "isnarcissistic". Error in Test20 (line 3) assert(isequal(isnarcissistic(x),y_correct))

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

m = 3.2164e+09 m = 321640496 m = 32164049 m = 3216404 m = 321640 m = 32164 m = 3216 m = 321 m = 32 m = 3 m = 0

Output argument "y" (and maybe others) not assigned during call to "isnarcissistic". Error in Test21 (line 3) assert(isequal(isnarcissistic(x),y_correct))