Cody

# Problem 44100. Input & Output "Smart One"

Solution 2490695

Submitted on 7 Jun 2020 by Ramesh Kumar V
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 = 0; y_correct = 6; assert(isequal(your_fcn_name(x),y_correct))

m = 1

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

m = 1

3   Pass
x = 10; y_correct = 18; assert(isequal(your_fcn_name(x),y_correct))

m = 1

4   Pass
x = 18; y_correct = 22; assert(isequal(your_fcn_name(x),y_correct))

m = 1

5   Pass
x = 22; y_correct = 30; assert(isequal(your_fcn_name(x),y_correct))

m = 1

6   Pass
x = 30; y_correct = 36; assert(isequal(your_fcn_name(x),y_correct))

m = 1

7   Pass
x = 36; y_correct = 42; assert(isequal(your_fcn_name(x),y_correct))

m = 1

8   Pass
x = 42; y_correct = 46; assert(isequal(your_fcn_name(x),y_correct))

m = 1

9   Pass
x = 1000; y_correct = 1008; assert(isequal(your_fcn_name(x),y_correct))

m = 1

10   Pass
x = 9999999; y_correct = 9999990; assert(isequal(your_fcn_name(x),y_correct))

m = 1

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!