Cody

Solution 1203548

Submitted on 3 Jun 2017 by Said BOUREZG
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))

tf = '1' ans = 0 ans = 1 ans = logical 1

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

tf = '0' ans = 0 ans = logical 1

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

tf = '153' ans = 0 ans = 1 ans = 3126 ans = 3153 ans = logical 0

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

tf = '634' ans = 0 ans = 46656 ans = 46683 ans = 46939 ans = logical 0

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

tf = '3435' ans = 0 ans = 27 ans = 283 ans = 310 ans = 3435 ans = logical 1

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

tf = '3534' ans = 0 ans = 27 ans = 3152 ans = 3179 ans = 3435 ans = logical 0

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

tf = '438579088' ans = 0 ans = 256 ans = 283 ans = 16777499 ans = 16780624 ans = 17604167 ans = 405024656 ans = 421801872 ans = 438579088 ans = logical 1