fork(1) download
  1. cases = {[6 8; 1 10; 6 6; 5 9; 8 10];
  2. [3 8; 7 5; 6 9; 7 8; 5 1];
  3. [4 8; 1 9; 9 9; 10 2; 1 6]};
  4.  
  5. % Test case to run
  6. testcase = 3;
  7.  
  8. I = cases{testcase};
  9.  
  10. for k=~eye(5);if nnz(convhull(I(k,1),I(k,2)))>4;I(k,:),end;end
  11.  
  12.  
Success #stdin #stdout 0.46s 121920KB
stdin
Standard input is empty
stdout
ans =

    1    9
    9    9
   10    2
    1    6

ans =

    4    8
    9    9
   10    2
    1    6

ans =

    4    8
    1    9
   10    2
    1    6