Cody

Solution 2083937

Submitted on 8 Jan 2020 by Alexander
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
assert(isequal(numeri_romani('+','I','I'),'II'))

dec = 0 a = 1 dec = 0 b = 1 out = 2 out = 'II'

2   Pass
assert(isequal(numeri_romani('-','X','I'),'IX'))

dec = 0 a = 10 dec = 0 b = 1 out = 9 out = 'IX'

3   Pass
assert(isequal(numeri_romani('*','X','X'),'C'))

dec = 0 a = 10 dec = 0 b = 10 out = 100 out = 'C'

4   Pass
assert(isequal(numeri_romani('+',numeri_romani('*','XXV','XX'),numeri_romani('+','IV','V')),'DIX'))

dec = 0 a = 25 dec = 0 b = 20 out = 500 out = 'D' dec = 0 a = 4 dec = 0 b = 5 out = 9 out = 'IX' dec = 0 a = 500 dec = 0 b = 9 out = 509 out = 'DIX'