Cody

# Problem 46. Which doors are open?

Solution 2004150

Submitted on 5 Nov 2019 by Aizhan Yermekova
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
x = 1; y_correct = 1; assert(isequal(which_doors_open(x),y_correct))

now = 1

2   Pass
x = 3; y_correct = 1; assert(isequal(which_doors_open(x),y_correct))

now = 1 now = 2 now = 3

3   Pass
x = 100; y_correct = [1 4 9 16 25 36 49 64 81 100]; assert(isequal(which_doors_open(x),y_correct))

now = 1 now = 2 now = 3 now = 4 now = 5 now = 6 now = 7 now = 8 now = 9 now = 10 now = 11 now = 12 now = 13 now = 14 now = 15 now = 16 now = 17 now = 18 now = 19 now = 20 now = 21 now = 22 now = 23 now = 24 now = 25 now = 26 now = 27 now = 28 now = 29 now = 30 now = 31 now = 32 now = 33 now = 34 now = 35 now = 36 now = 37 now = 38 now = 39 now = 40 now = 41 now = 42 now = 43 now = 44 now = 45 now = 46 now = 47 now = 48 now = 49 now = 50 now = 51 now = 52 now = 53 now = 54 now = 55 now = 56 now = 57 now = 58 now = 59 now = 60 now = 61 now = 62 now = 63 now = 64 now = 65 now = 66 now = 67 now = 68 now = 69 now = 70 now = 71 now = 72 now = 73 now = 74 now = 75 now = 76 now = 77 now = 78 now = 79 now = 80 now = 81 now = 82 now = 83 now = 84 now = 85 now = 86 now = 87 now = 88 now = 89 now = 90 now = 91 now = 92 now = 93 now = 94 now = 95 now = 96 now = 97 now = 98 now = 99 now = 100