Cody

# Problem 2147. Langston's Ant

Solution 395612

Submitted on 2 Feb 2014 by Bart
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))

st = 0

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

st = 0

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

st = 0

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

st = 0

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

st = 0

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

st = 0

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

st = 0

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

st = 0

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

st = 0

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

st = 0

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

st = 0

### Community Treasure Hunt

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

Start Hunting!