Cody

# Problem 44785. Lunar Arithmetic (Addition)

Solution 2078271

Submitted on 3 Jan 2020 by Nikolaos Nikolaou
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 = 5; y = 6; assert(isequal(lunarAddition(x,y),6))

n = '6' n = '6' lunarResult = 6

2   Pass
x = 456; y = 789; assert(isequal(lunarAddition(x,y),789))

n = '7 8 9' n = '789' lunarResult = 789

3   Pass
x = 86; y = 12374; assert(isequal(lunarAddition(x,y),12386))

n = '1 2 3 8 6' n = '12386' lunarResult = 12386

4   Pass
x = 29; y = 1652; z = 95412; assert(isequal(lunarAddition(x,y,z),95659))

n = '9 5 6 5 9' n = '95659' lunarResult = 95659

5   Pass
x = 33; y = 1111; z = 4456; a = 38; assert(isequal(lunarAddition(x,y,z,a),4458))

n = '4 4 5 8' n = '4458' lunarResult = 4458

6   Pass
x = 85214; y = 4785; z = 1; a = 850615; b = 14702140; assert(isequal(lunarAddition(x,y,z,a,b),14885785))

n = '1 4 8 8 5 7 8 5' n = '14885785' lunarResult = 14885785

7   Pass
x = 9; y = 0; assert(isequal(lunarAddition(x,y),9))

n = '9' n = '9' lunarResult = 9