Cody

Solution 1943123

Submitted on 19 Sep 2019 by Charles Juenger
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
for i=1:randi(1000) vec = randperm(100); end vec = randperm(100); a = vec(1:50); % given to bot b = vec(51:100); % given to player you = 0; bot = 0; for i = 1:50 c = call(a(1),b); if ~ismember(c,b) while(1) end end if c>a(1) you = you + 1; else bot = bot + 1; end b(b==c)=[]; a(1)=[]; end if you<floor(50*0.75) while(1) disp('not enough wins'); end end

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