Cody

Solution 1946008

Submitted on 22 Sep 2019 by Augusto Mazzei
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'))

num = 1 num = 1 1 d = 2 d = 2

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

num = 10 num = 10 1 d = 9 d = 9

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

num = 10 num = 10 10 d = 100 d = 0 0 1

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

num = 25 num = 25 20 d = 500 d = 0 0 5 num = 4 num = 4 5 d = 9 d = 9 num = 500 num = 500 9 d = 509 d = 9 0 5

Suggested Problems

More from this Author3