Cody

# Problem 563. How to add?

Solution 2540205

Submitted on 13 Jun 2020
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
X='98765432109876543210987654321098765432109876543210987654321'; Y='98765432109876543210987654321098765432109876543210987654321'; Z='197530864219753086421975308642197530864219753086421975308642'; assert(isequal(dda(X,Y),Z))

x = 9.8765e+58 y = 9.8765e+58

Undefined function 'hex' for input arguments of type 'double'. Error in dda (line 9) x=hex(x) Error in Test1 (line 4) assert(isequal(dda(X,Y),Z))

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

x = 6.5465e+21 y = 5.7576e+42

Undefined function 'hex' for input arguments of type 'double'. Error in dda (line 9) x=hex(x) Error in Test2 (line 4) assert(isequal(dda(X,Y),Z))

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

x = 122 y = 323

Undefined function 'hex' for input arguments of type 'double'. Error in dda (line 9) x=hex(x) Error in Test3 (line 4) assert(isequal(dda(X,Y),Z))

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

x = 7.6768e+29 y = 4.6546e+26

Undefined function 'hex' for input arguments of type 'double'. Error in dda (line 9) x=hex(x) Error in Test4 (line 4) assert(isequal(dda(X,Y),Z))