Cody

# Problem 45247. Tell your secret

Solution 3035116

Submitted on 2 Oct 2020 by Alfonso Nieto-Castanon
• Size: 23
• This is the leading solution.
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
n = 1; z = [0,0]; assert(isequal(puzzle_tell_ur_secret(n),z))

2   Pass
n = 2; z = [5,5]; assert(isequal(puzzle_tell_ur_secret(n),z))

3   Pass
n = 3; z = [5,5]; assert(isequal(puzzle_tell_ur_secret(n),z))

4   Pass
n = 8; z = [10,15]; assert(isequal(puzzle_tell_ur_secret(n),z))

5   Pass
n = 20; z = [15,20]; assert(isequal(puzzle_tell_ur_secret(n),z))

6   Pass
n = 31; z = [20,20]; assert(isequal(puzzle_tell_ur_secret(n),z))

7   Pass
n = 64; z = [20,30]; assert(isequal(puzzle_tell_ur_secret(n),z))

8   Pass
n = 100; z = [25,30]; assert(isequal(puzzle_tell_ur_secret(n),z))

9   Pass
n = 768; z = [35,45]; assert(isequal(puzzle_tell_ur_secret(n),z))

10   Pass
n = 3000; z = [40,55]; assert(isequal(puzzle_tell_ur_secret(n),z))

11   Pass
n = 100000; z = [55,80]; assert(isequal(puzzle_tell_ur_secret(n),z))

### Community Treasure Hunt

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

Start Hunting!