Cody

# Problem 42493. Pancakes for everyone!

Solution 1990313

Submitted on 25 Oct 2019 by Nikolaos Nikolaou
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))

y = 1 y = 0

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

y = 1

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

y = 2

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

y = 3

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

y = 5

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

y = 7

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

y = 16

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

y = 63

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

y = 2850

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

y = 49690

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

y = 52193

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

y = 2015

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

y = 152193

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

y = 134217728 y = 134217727