Anonymous user
Cut a rectangle: Difference between revisions
Updated D entry
(Fixed comment to D entry) |
(Updated D entry) |
||
Line 402:
core.stdc.string, std.typetuple;
template Range(int stop) { // for manual loop unroll
static if (stop <= 0)
alias TypeTuple!() Range;
Line 409:
}
__gshared ubyte
__gshared int w, h, len;
__gshared ulong cnt;
Line 447:
len = (h + 1) * (w + 1);
{
exit(1);
grid = ptr[0 .. len];
}
grid[] = 0;
len--;
//next = [-1, -w - 1, 1, w + 1]; // slow
next[0] = -1;
next[1] = -w - 1;
|