Cody

Problem 2056. Is this number Munchhausen Narcissistic?

Solution 2228064

Submitted on 21 Apr 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
n=1; y_correct=1; assert(isequal(ismunch(n),y_correct))

Error in solution: Line: 5 Column: 50 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.

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

Error in solution: Line: 5 Column: 50 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.

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

Error in solution: Line: 5 Column: 50 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.

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

Error in solution: Line: 5 Column: 50 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.

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

Error in solution: Line: 5 Column: 50 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.

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

Error in solution: Line: 5 Column: 50 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.

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

Error in solution: Line: 5 Column: 50 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.