Cody

# Problem 1372. Miles to go before I sleep

Solution 227416

Submitted on 5 Apr 2013 by Jean-Marie Sainthillier
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, log in.

### Test Suite

Test Status Code Input and Output
1   Pass
%% x = 12345; y_correct = 0; assert(isequal(miles2go(x),y_correct));

``` ```

2   Pass
%% x = 67903; y_correct = 10998; assert(isequal(miles2go(x),y_correct));

``` ```

3   Pass
%% x = 9012; y_correct = 0; assert(isequal(miles2go(x),y_correct));

``` ```

4   Pass
%% x = 9013; y_correct = 3332; assert(isequal(miles2go(x),y_correct));

``` ```

5   Pass
%% x = 9011; y_correct = 1; assert(isequal(miles2go(x),y_correct));

``` ```

6   Pass
%% x = 67878; y_correct = 12; assert(isequal(miles2go(x),y_correct));

``` ```

7   Pass
%% x = 98765; y_correct = 24691; assert(isequal(miles2go(x),y_correct));

``` ```

8   Pass
%% x = 9843; y_correct = 2502; assert(isequal(miles2go(x),y_correct));

``` ```

9   Pass
%% x = 7903; y_correct = 998; assert(isequal(miles2go(x),y_correct));

``` ```