Cody

# Problem 2056. Is this number Munchhausen Narcissistic?

Solution 1234575

Submitted on 19 Jul 2017 by Andrew Dobrovolc
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
n=1; y_correct=1; assert(isequal(ismunch(n),y_correct))

num = 1 numn = 1

2   Pass
n=0; y_correct=1; assert(isequal(ismunch(n),y_correct))

num = 0 numn = 1

3   Pass
n=153; y_correct=0; assert(isequal(ismunch(n),y_correct))

num = 1 numn = 1 num = 5 numn = 3126 num = 3 numn = 3153

4   Pass
n=634; y_correct=0; assert(isequal(ismunch(n),y_correct))

num = 6 numn = 46656 num = 3 numn = 46683 num = 4 numn = 46939

5   Pass
n=3435; y_correct=1; assert(isequal(ismunch(n),y_correct))

num = 3 numn = 27 num = 4 numn = 283 num = 3 numn = 310 num = 5 numn = 3435

6   Pass
n=3534; y_correct=0; assert(isequal(ismunch(n),y_correct))

num = 3 numn = 27 num = 5 numn = 3152 num = 3 numn = 3179 num = 4 numn = 3435

7   Pass
n=438579088; y_correct=1; assert(isequal(ismunch(n),y_correct))

num = 4 numn = 256 num = 3 numn = 283 num = 8 numn = 16777499 num = 5 numn = 16780624 num = 7 numn = 17604167 num = 9 numn = 405024656 num = 0 numn = 405024657 num = 8 numn = 421801873 num = 8 numn = 438579089