Cody

Solution 1922895

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 = 76 N = 80 N = 72 N = 78 N = 68 N = 74 N = 72 N = 72 N = 74 N = 73 N = 74 N = 60 N = 68 N = 62 N = 70 N = 71 N = 80 N = 61 N = 80 N = 65 N = 62 N = 77 N = 69 N = 75 N = 60 N = 75 N = 65 N = 61 N = 70 N = 80 N = 80 N = 62 N = 73 N = 62 N = 65 N = 72 N = 73 N = 70 N = 67 N = 75 N = 77 N = 65 N = 77 N = 62 N = 78 N = 67 N = 64 N = 72 N = 73 N = 70 N = 63 N = 63 N = 64 N = 74 N = 73 N = 63 N = 69 N = 64 N = 74 N = 71 N = 72 N = 62 N = 72 N = 62 N = 60 N = 78 N = 77 N = 76 N = 69 N = 74 N = 68 N = 65 N = 64 N = 60 N = 72 N = 63 N = 69 N = 62 N = 73 N = 64 N = 77 N = 63 N = 73 N = 64 N = 65 N = 73 N = 67 N = 79 N = 70 N = 63 N = 77 N = 72 N = 79 N = 60 N = 76 N = 79 N = 71 N = 62 N = 66 N = 68 N = 72 N = 61 N = 60 N = 71 N = 67 N = 62 N = 60 N = 73 N = 75 N = 69 N = 75 N = 76 N = 62 N = 71 N = 79 N = 72 N = 72 N = 77 N = 75 N = 75 N = 75 N = 62 N = 71 N = 65 N = 63 N = 75 N = 79 N = 62 N = 66 N = 68 N = 64 N = 61 N = 64 N = 63 N = 80 N = 64 N = 66 N = 80 N = 80 N = 64 N = 72 N = 71 N = 76 N = 67 N = 76 N = 74 N = 62 N = 75 N = 70 N = 77 N = 61 N = 71 N = 65 N = 80 N = 66 N = 69 N = 66 N = 60 N = 75 N = 73 N = 69 N = 73 N = 63 N = 61 N = 67 N = 61 N = 67 N = 63 N = 67 N = 73 N = 74 N = 76 N = 75 N = 71 N = 63 N = 67 N = 80 N = 73 N = 67 N = 77 N = 77 N = 74 N = 62 N = 65 N = 63 N = 63 N = 78 N = 76 N = 78 N = 78 N = 60 N = 75 N = 77 N = 66 N = 73 N = 63 N = 75 N = 80 N = 75 N = 61 N = 80 N = 78 N = 64 N = 65 N = 79 N = 78 N = 67 N = 76 N = 72 N = 63 N = 61 N = 63 N = 74 N = 66 N = 65 N = 65 N = 70 N = 62 N = 67 N = 65 N = 63 N = 73 N = 60 N = 63 N = 70 N = 63 N = 66 N = 72 N = 71 N = 61 N = 67 N = 73 N = 67 N = 64 N = 69 N = 65 N = 63 N = 69 N = 62 N = 76 N = 74 N = 75 N = 63 N = 61 N = 76 N = 64 N = 73 N = 72 N = 75 N = 78 N = 74 N = 79 N = 75 N = 67 N = 73 N = 67 N = 63 N = 61 N = 79 N = 73 N = 76 N = 71 N = 73 N = 65 N = 72 N = 60 N = 70 N = 60 N = 75 N = 68 N = 79 N = 77 N = 66 N = 64 N = 80 N = 67 N = 72 N = 66 N = 80 N = 75 N = 65 N = 60 N = 62 N = 74 N = 63 N = 69 N = 75 N = 65 N = 73 N = 69 N = 63 N = 70 N = 78 N = 67 N = 77 N = 78 N = 72 N = 72 N = 62 N = 71 N = 76 N = 78 N = 70 N = 65 N = 66 N = 64 N = 62 N = 63 N = 78 N = 72 N = 65 N = 68 N = 74 N = 62 N = 78 N = 79 N = 63 N = 74 N = 69 N = 76 N = 72 N = 74 N = 74 N = 77 N = 76 N = 72 N = 60 N = 72 N = 73 N = 80 N = 60 N = 69 N = 62 N = 69 N = 65 N = 65 N = 71 N = 68 N = 67 N = 72 N = 70 N = 71 N = 65 N = 74 N = 66 N = 69 N = 73 N = 78 N = 79 N = 68 N = 71 N = 65 N = 75 N = 66 N = 73 N = 75 N = 73 N = 64 N = 70 N = 77 N = 80 N = 78 N = 61 N = 67 N = 62 N = 75 N = 78 N = 80 N = 74 N = 70 N = 62 N = 80 N = 63 N = 69 N = 79 N = 76 N = 62 N = 65 N = 62 N = 63 N = 62 N = 67 N = 63 N = 80 N = 60 N = 68 N = 61 N = 79 N = 76 N = 72 N = 62 N = 74 N = 66 N = 67 N = 73 N = 67 N = 66 N = 71 N = 73 N = 64 N = 80 N = 65 N = 77 N = 68 N = 76 N = 62 N = 71 N = 64 N = 62 N = 67 N = 63 N = 80 N = 66 N = 76 N = 66 N = 65 N = 77 N = 77 N = 66 N = 74 N = 70 N = 75 N = 79 N = 69 N = 71 N = 65 N = 70 N = 60 N = 72 N = 72 N = 80 N = 67 N = 63 N = 79 N = 69 N = 63 N = 65 N = 79 N = 76 N = 60 N = 79 N = 61 N = 75 N = 74 N = 66 N = 66 N = 76 N = 66 N = 72 N = 68 N = 68 N = 73 N = 63 N = 77 N = 68 N = 69 N = 66 N = 71 N = 74 N = 72 N = 63 N = 79 N = 80 N = 76 N = 63 N = 78 N = 80 N = 73 N = 69 N = 76 N = 69 N = 69 N = 72 N = 75 N = 68 N = 63 N = 69 N = 65 N = 71 N = 65 N = 67 N = 62 N = 72 N = 74 N = 63 N = 75 N = 60 N = 64 N = 68 N = 78 N = 80 N = 76 N = 68 N = 78 N = 75 N = 66 N = 61 N = 67 N = 60 N = 79 N = 77 N = 70 N = 72 N = 75 N = 78 N = 71 N = 66 N = 66 N = 70 N = 61 N = 70 N = 76 N = 80 N = 75 N = 74 N = 63 N = 72 N = 72 N = 73 N = 62 N = 60 N = 80 N = 61 N = 78 N = 74 N = 76 N = 67 N = 70 N = 62 N = 72 N = 62 N = 79 N = 73 N = 78 N = 70 N = 80 N = 65 N = 72 N = 66 N = 73 N = 65 N = 62 N = 61 N = 63 N = 79 N = 71 N = 74 N = 69 N = 70 N = 64 N = 71 N = 62 N = 70 N = 73 N = 70 N = 76 N = 66 N = 78 N = 63 N = 77 N = 72 N = 80 N = 72 N = 67 N = 69 N = 64 N = 60 N = 77 N = 73 N = 66 N = 64 N = 77 N = 65 N = 70 N = 79 N = 72 N = 72 N = 65 N = 64 N = 61 N = 65 N = 61 N = 76 N = 62 N = 72 N = 60 N = 67 N = 63 N = 70 N = 76 N = 69 N = 76 N = 78 N = 69 N = 77 N = 70 N = 69 N = 77 N = 63 N = 80 N = 62 N = 60 N = 72 N = 76 N = 71 N = 67 N = 75 N = 79 N = 65 N = 75 N = 77 N = 62 N = 79 N = 76 N = 60 N = 62 N = 77 N = 71 N = 80 N = 66 N = 68 N = 78 N = 63 N = 66 N = 65 N = 73 N = 80 N = 78 N = 61 N = 79 N = 75 N = 71 N = 70 N = 76 N = 65 N = 63 N = 80 N = 69 N = 74 N = 73 N = 80 N = 68 N = 72 N = 62 N = 67 N = 79 N = 66 N = 80 N = 70 N = 79 N = 66 N = 69 N = 64 N = 60 N = 61 N = 63 N = 61 N = 67 N = 67 N = 73 N = 80 N = 78 N = 79 N = 79 N = 71 N = 62 N = 73 N = 70 N = 77 N = 80 N = 76 N = 76 N = 79 N = 76 N = 62 N = 60 N = 65 N = 66 N = 61 N = 65 N = 60 N = 79 N = 74 N = 62 N = 69 N = 70 N = 60 N = 79 N = 73 N = 71 N = 74 N = 60 N = 71 N = 60 N = 75 N = 77 N = 73 N = 67 N = 60 N = 71 N = 69 N = 61 N = 67 N = 74 N = 69 N = 65 N = 77 N = 62 N = 79 N = 66 N = 67 N = 61 N = 60 N = 74 N = ...

hit rate too low (1.08%)

Suggested Problems

More from this Author38