Cody

# Problem 2482. Card Game

Solution 2603260

Submitted on 23 Jun 2020
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
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

sum = 9 sum = 10 sum = 11 sum = 12 sum = 13 sum = 14 sum = 15 sum = 16 sum = 17 sum = 18 sum = 19 sum = 20 sum = 21 sum = 22 sum = 23 sum = 24 sum = 25 sum = 26 sum = 27 sum = 28 sum = 29 sum = 30 sum = 31 sum = 32 sum = 33 sum = 34 sum = 35 sum = 36 sum = 37 sum = 38 sum = 39 sum = 40 sum = 41 sum = 42 sum = 43 sum = 44 sum = 45 sum = 46 sum = 47 sum = 48 sum = 49 sum = 50 sum = 51 sum = 52 sum = 53 sum = 54 sum = 55 sum = 56 sum = 57 sum = 58 sum = 59

Output argument "y" (and maybe others) not assigned during call to "call". Error in Test1 (line 14) c = call(a(1),b);