Cody

# Problem 563. How to add?

Solution 73186

Submitted on 9 Apr 2012 by James
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='98765432109876543210987654321098765432109876543210987654321'; Y='98765432109876543210987654321098765432109876543210987654321'; Z='197530864219753086421975308642197530864219753086421975308642'; assert(isequal(dda(X,Y),Z))

q = Columns 1 through 10 1 9 7 5 3 0 8 6 4 2 Columns 11 through 20 1 9 7 5 3 0 8 6 4 2 Columns 21 through 30 1 9 7 5 3 0 8 6 4 2 Columns 31 through 40 1 9 7 5 3 0 8 6 4 2 Columns 41 through 50 1 9 7 5 3 0 8 6 4 2 Columns 51 through 60 1 9 7 5 3 0 8 6 4 2

2   Pass
%% X='6546468768680988454345'; Y='5757557542432424209808098908085353545657657'; Z='5757557542432424209814645376854034534112002'; assert(isequal(dda(X,Y),Z))

q = Columns 1 through 10 0 5 7 5 7 5 5 7 5 4 Columns 11 through 20 2 4 3 2 4 2 4 2 0 9 Columns 21 through 30 8 1 4 6 4 5 3 7 6 8 Columns 31 through 40 5 3 10 3 4 5 3 4 1 1 Columns 41 through 44 1 9 10 2

3   Pass
%% X='122'; Y='323'; Z='445'; assert(isequal(dda(X,Y),Z))

q = 0 4 4 5

4   Pass
%% X='767678686868667868635435353545'; Y='465464643244242424249787979'; Z='768144151511912111059685141524'; assert(isequal(dda(X,Y),Z))

q = Columns 1 through 10 0 7 6 8 1 4 4 1 5 1 Columns 11 through 20 5 1 1 9 1 2 1 1 1 0 Columns 21 through 30 5 9 6 8 5 1 4 1 5 2 Column 31 4