Cody

Solution 1922899

Submitted on 5 Sep 2019
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   Fail
Ntest=1e4; N=randi([10,100],Ntest,1); K=randi([1 10],Ntest,1); M=arrayfun(@(N,K)max(randi(N,1,K)),N,K); N_hat=arrayfun(@tank_problem,K,M); rate=mean(N==N_hat); assert(rate>=.1,sprintf('hit rate too low (%0.2f%%)',rate*100)); fprintf('hit rate = %0.2f%%\n',rate*100);

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

hit rate too low (6.19%)

Suggested Problems

More from this Author38