Diffing "Pretty good" and "Yrite 4"

Title: Pretty good Yrite 4
Author: Mark Bartsch Niilo Sirola
Submitted: 2003-11-04 10:37:40 UTC 2003-11-04 11:21:02 UTC
Status: Passed Passed
Score: 60.0 57.0
Result: pass pass
CPU Time: 0.11 0.11
Code:
f = 1;
for i=1:sum(b)
    g=b;
    g(f)=0;
    [e,f]=max(g);
    c(i)=a(f);
    b(f)=b(f)-1;
    b(f)=e-1;
end