Cody

# Problem 2147. Langston's Ant

Solution 1942121

Submitted on 19 Sep 2019 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
assert(isequal(Langston_Ant(100),20))

BLK = 20

2   Pass
assert(isequal(Langston_Ant(200),40))

BLK = 40

3   Pass
assert(isequal(Langston_Ant(300),48))

BLK = 48

4   Pass
assert(isequal(Langston_Ant(400),62))

BLK = 62

5   Pass
assert(isequal(Langston_Ant(500),62))

BLK = 62

6   Pass
assert(isequal(Langston_Ant(600),72))

BLK = 72

7   Pass
assert(isequal(Langston_Ant(700),80))

BLK = 80

8   Pass
assert(isequal(Langston_Ant(800),96))

BLK = 96

9   Pass
assert(isequal(Langston_Ant(900),108))

BLK = 108

10   Pass
assert(isequal(Langston_Ant(1000),118))

BLK = 118

11   Pass
assert(isequal(Langston_Ant(12000),952))

BLK = 952

### Community Treasure Hunt

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

Start Hunting!