Cody

# Problem 47608. Decipher the number 4 - 3 keys - order [1 2 3 2 1 2 3 ......]

Solution 3821108

Submitted on 24 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
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))

### Community Treasure Hunt

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

Start Hunting!