Cody

# Problem 42493. Pancakes for everyone!

Solution 1733948

Submitted on 23 Feb 2019
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 = 0; assert(isequal(pancake(x),y_correct))

2   Fail
x = 2;y_correct = 1; assert(isequal(pancake(x),y_correct))

Assertion failed.

3   Fail
x = 4;y_correct = 2; assert(isequal(pancake(x),y_correct))

Assertion failed.

4   Pass
x = 7;y_correct = 3; assert(isequal(pancake(x),y_correct))

5   Pass
x = 12;y_correct = 5; assert(isequal(pancake(x),y_correct))

6   Fail
x = 27;y_correct = 7; assert(isequal(pancake(x),y_correct))

Assertion failed.

7   Fail
x = 127;y_correct = 16; assert(isequal(pancake(x),y_correct))

Assertion failed.

8   Fail
x = 2015;y_correct = 63; assert(isequal(pancake(x),y_correct))

Assertion failed.

9   Fail
x = 4060225;y_correct = 2850; assert(isequal(pancake(x),y_correct))

Assertion failed.

10   Fail
x = 1234567890;y_correct = 49690; assert(isequal(pancake(x),y_correct))

Assertion failed.

11   Fail
x = 1362067890;y_correct = 52193; assert(isequal(pancake(x),y_correct))

Assertion failed.

12   Fail
x = 2030000;y_correct = 2015; assert(isequal(pancake(x),y_correct))

Assertion failed.

13   Fail
x = 11581428900;y_correct = 152193; assert(isequal(pancake(x),y_correct))

Assertion failed.

14   Fail
x = 9007199187632129; y_correct = 134217727; assert(isequal(pancake(x),y_correct))

Assertion failed.