Cody

Solution 1925600

Submitted on 8 Sep 2019
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))

y = 1

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

y = 9

Assertion failed.

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

y = 1

Assertion failed.

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

y = 162

Assertion failed.

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

y = 134

Assertion failed.

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

y = 153

Assertion failed.

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

y = 190

Assertion failed.

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

y = 371

Assertion failed.

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

y = 370

Assertion failed.

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

y = 1634

Assertion failed.

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

y = 6513

Assertion failed.

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

y = 9474

Assertion failed.

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

y = 9926315

Assertion failed.

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

y = 88593477

Assertion failed.

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

y = 9800817

Assertion failed.

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

y = 54748

Assertion failed.

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

y = 4.6793e+09

Assertion failed.

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

y = 472335975

Assertion failed.

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

y = 3.2164e+10

Assertion failed.

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

y = 3.2164e+10

Assertion failed.

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

y = 3.2164e+10

Assertion failed.