Winner Nicke (Revolution IV)

Finish 2003-11-13 15:00:00 UTC

cyclist_33

by cyclist

Status: Passed
Results: pass
CPU Time: 46.166
Score: 243.0
Submitted at: 2003-11-06 17:46:08 UTC
Scored at: 2003-11-06 19:40:59 UTC

Current Rank: 64th
Based on: transpose5.1-1 (diff)
Basis for: blah 4 (diff)

Comments
Please login or create a profile.
Code
[n m]=size(a);
z=n*m;
o=1:z
for i=o
    p{i}=i;
end
for i=o
    for k=o
        e=p{k}(end);
        h = a(e)+1;
        g = e-1;
        w = e+n;
        x = p{k};
        f = mod(g,n);        
        if w<=z & a(w)==h
            p{k} = [x;w];
        elseif e>n & a(e-n)==h
            p{k} = [x;e-n];
        elseif f<n-1 & a(e+1)==h
            p{k} = [x;e+1];
        elseif f & a(g)==h
            p{k} = [x;g];
        end
        d(k) = nnz(p{k});
    end
end
[v b]=max(d);
b = p{b}