Cody

Solution 1208378

Submitted on 8 Jun 2017 by Augusto Mazzei
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))

k = 1 tf = 1 tf = 1 tf = logical 1

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

k = 0 tf = 1 tf = 0 tf = logical 1

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

k = 1 5 3 tf = 1 3125 27 tf = 1 3125 27 tf = logical 0

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

k = 6 3 4 tf = 46656 27 256 tf = 46656 27 256 tf = logical 0

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

k = 3 4 3 5 tf = 27 256 27 3125 tf = 27 256 27 3125 tf = logical 1

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

k = 3 5 3 4 tf = 27 3125 27 256 tf = 27 3125 27 256 tf = logical 0

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

k = 4 3 8 5 7 9 0 8 8 tf = 256 27 16777216 3125 823543 387420489 1 16777216 16777216 tf = 256 27 16777216 3125 823543 387420489 0 16777216 16777216 tf = logical 1