Diffing "Pretty good" and "martijn 6"

Title: Pretty good martijn 6
Author: Mark Bartsch Martijn Visser
Submitted: 2003-11-04 10:37:40 UTC 2003-11-04 11:45:40 UTC
Status: Passed Failed
Score: 60.0 0.0
Result: pass []
CPU Time: 0.11 0.0
Code:
f = 1;
for i=1:sum(b)
    g=b;
    g(f)=0;
    [e,f]=max(g);
    [,f]=max(g);
    c(i)=a(f);
    b(f)=b(f)-1;
end