Cody

Solution 1832981

Submitted on 31 May 2019 by Nikhil Ulahannan
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))

a = 1 b = 1

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

a = 9 b = 9

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

a = 1 0 b = 1

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

a = 9 9 b = 162

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

a = 1 5 2 b = 134

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

a = 1 5 3 b = 153

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

a = 1 5 4 b = 190

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

a = 3 7 1 b = 371

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

a = 3 7 0 b = 370

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

a = 1 6 3 4 b = 1634

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

a = 8 2 0 7 b = 6513

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

a = 9 4 7 4 b = 9474

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

a = 9 9 2 6 3 1 5 b = 9926315

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

a = 8 8 5 9 3 4 7 7 b = 88593477

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

a = 9 8 0 0 8 1 7 b = 9800817

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

a = 5 4 7 4 8 b = 54748

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

a = 4 6 7 9 3 0 7 7 7 4 b = 4.6793e+09

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

a = 4 7 2 3 3 5 9 7 5 b = 472335975

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

a = 3 2 1 6 4 0 4 9 6 5 0 b = 3.2164e+10

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

a = 3 2 1 6 4 0 4 9 6 5 1 b = 3.2164e+10

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

a = 3 2 1 6 4 0 4 9 6 5 2 b = 3.2164e+10