Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
filetext = fileread('decyp.m');
assert(isempty(strfind(filetext, 'regexp')),'regexp hacks are forbidden')
assert(isempty(strfind(filetext, 'if')),'if is forbidden')
assert(isempty(strfind(filetext, 'while')),'while is forbidden')
assert(isempty(strfind(filetext, '-')),'- is forbidden')
|
2 | Pass |
x=round(26740*561311/56151);
y=324920;
assert(isequal(decyp(x),y))
|
3 | Pass |
y=1088989;
x=1561615;
assert(isequal(decyp(x),y))
|
4 | Pass |
x=round(log(152385*15275445))*2511;
y= 55156;
assert(isequal(decyp(x),y))
|
5 | Pass |
x=round(sqrt(158485*1555)/211);
y=54;
assert(isequal(decyp(x),y))
|
Find relatively common elements in matrix rows
865 Solvers
875 Solvers
1143 Solvers
Find nearest prime number less than input number
269 Solvers
78 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!