Dinesman's multiple-dwelling problem: Difference between revisions
Content added Content deleted
m (→{{header|D}}) |
(→{{header|D}}: fix overflow issue) |
||
Line 131:
<lang d>import std.stdio, std.exception, std.range, std.algorithm, std.math;
pure
for (
result *= i;
return result;
Line 140:
struct LazyPermutation {
private uint[] seq;
private
private size_t num;
|