Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 1990;
y_correct = 'MCMXC';
assert(isequal(dec2rom(x),y_correct))
|
2 | Pass |
x = 2008;
y_correct = 'MMVIII';
assert(isequal(dec2rom(x),y_correct))
|
3 | Pass |
x = 1666;
y_correct = 'MDCLXVI';
assert(isequal(dec2rom(x),y_correct))
|
4 | Pass |
x = 49;
y_correct = 'XLIX';
assert(isequal(dec2rom(x),y_correct))
|
5 | Pass |
x = 45;
y_correct = 'XLV';
assert(isequal(dec2rom(x),y_correct))
|
6 | Pass |
x = 0;
y_correct = '';
assert(isempty(dec2rom(x)))
|
1313 Solvers
Find the sum of the elements in the "second" diagonal
880 Solvers
Matrix which contains the values of an other matrix A at the given locations.
196 Solvers
Cell Counting: How Many Draws?
255 Solvers
1078 Solvers