Winner Guy Shechter (j11)

Finish 2003-11-11 10:00:00 UTC

tweak first3

by Luis F. Gutierrez

Status: Passed
Results: pass
CPU Time: 0.27
Score: 86.0
Submitted at: 2003-11-04 10:45:55 UTC
Scored at: 2003-11-04 11:19:46 UTC

Current Rank: 73rd
Based on: first3 (diff)

Comments
Please login or create a profile.
Code
c=[];
for i=1:sum(~~b)
    c = [c a(i)*ones(1,b(i))];
end
while any(~diff(c))
    c=c(randperm(sum(b)));
end