Cody

Solution 1123612

Submitted on 15 Feb 2017 by mohammad z
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))

u = 1 y = logical 1

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

u = 9 y = logical 1

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

u = 1

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

u = 162

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

u = 134

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

u = 153 y = logical 1

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

u = 190

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

u = 371 y = logical 1

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

u = 370 y = logical 1

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

u = 1634 y = logical 1

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

u = 6513

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

u = 9474 y = logical 1

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

u = 9926315 y = logical 1

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

u = 88593477 y = logical 1

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

u = 9800817 y = logical 1

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

u = 54748 y = logical 1

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

u = 4.6793e+09 y = logical 1

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

u = 472335975 y = logical 1

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

u = 3.2164e+10 y = logical 1

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

u = 3.2164e+10 y = logical 1

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

u = 3.2164e+10