Cody

Problem 44786. Lunar Arithmetic (Multiplication)

Solution 3393433

Submitted on 26 Oct 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 = 15866; y = 147; assert(isequal(lunarMultiplication(x,y),1145766))

Assertion failed.

2   Fail
x = 169; y = 248; assert(isequal(lunarMultiplication(x,y),12468))

Assertion failed.

3   Pass
x = 7; y = 4; assert(isequal(lunarMultiplication(x,y),4))

4   Pass
x = 78; y = 4; assert(isequal(lunarMultiplication(x,y),44))

5   Fail
x = 7799123; y = 109; assert(isequal(lunarMultiplication(x,y),117799123))

Assertion failed.