Winner Guy Shechter (j11)

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

my

by Michael Yampol

Status: Passed
Results: pass
CPU Time: 0.261
Score: 87.0
Submitted at: 2003-11-04 10:50:27 UTC
Scored at: 2003-11-04 11:22:49 UTC

Current Rank: 95th
Based on: randperm (diff)

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