Cody

# Problem 44082. Recycled Numbers (CodeJam Qualification Round 2012)

Solution 1258260

Submitted on 28 Aug 2017
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   Fail
a=1; b=9; y_correct = 0; assert(isequal(recycled_numbers(a,b),y_correct))

Output argument "y" (and maybe others) not assigned during call to "recycled_numbers". Error in Test1 (line 4) assert(isequal(recycled_numbers(a,b),y_correct))

2   Fail
a=10; b=40; y_correct = 3; assert(isequal(recycled_numbers(a,b),y_correct))

Assertion failed.

3   Fail
a=1111; b=2222; y_correct = 287 ; %:) assert(isequal(recycled_numbers(a,b),y_correct))

Assertion failed.

4   Fail
a=21; b=31; y_correct = 0; assert(isequal(recycled_numbers(a,b),y_correct))

Assertion failed.

5   Fail
a=1; b=9; y_correct = 0; assert(isequal(recycled_numbers(a,b),y_correct))

Output argument "y" (and maybe others) not assigned during call to "recycled_numbers". Error in Test5 (line 4) assert(isequal(recycled_numbers(a,b),y_correct))

6   Fail
a=104; b=989; assert(isequal(recycled_numbers(a,b),781))

Assertion failed.

7   Fail
a=10; b=99; y = 36; assert(isequal(recycled_numbers(a,b),y))

Assertion failed.

8   Fail
assert(isequal(recycled_numbers(100,999),801))

Assertion failed.

9   Fail
a=1000; b=9999; y_correct = 12060; assert(isequal(recycled_numbers(a,b),y_correct))

Assertion failed.

10   Fail
b=484; a=954; assert(isequal(recycled_numbers(b,a),203))

Assertion failed.

11   Fail
a=159887; b=195662; correct = 2058; assert(isequal(recycled_numbers(a,b),correct))

Assertion failed.