This is just silly. It's gaming the Matlab grader, and not doing a particularly good job at that. Why should this stop at 3999?
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)))
|
Find the sum of all the numbers of the input vector
31949 Solvers
What is the distance from point P(x,y) to the line Ax + By + C = 0?
277 Solvers
Given a 4x4 matrix, swap the two middle columns
516 Solvers
Create an index-powered vector
352 Solvers
340 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!