Problem 47553. Decipher the number 2 - 3 keys

Solution 3720263

Submitted on 18 Nov 2020 by William
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
y=185968; x=round(26740*561311/56151); assert(isequal(decyp(x),y)) y=149847952984408; x=20710655*13335135; assert(isequal(decyp(x),y)) y=531355+940517; x=1538545+1254151; assert(isequal(decyp(x),y)) x=round(log(152385*15275445))*2511; y=36455; assert(isequal(decyp(x),y)) x=round(sqrt(158485*1555)/211); y=37; assert(isequal(decyp(x),y)) 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')

Suggested Problems

More from this Author33

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!