Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
|
|
@ -11,7 +11,7 @@ string josephus(in int n, in int k) pure /*nothrow*/ @safe {
|
|||
int i;
|
||||
immutable(int)[] seq;
|
||||
while (!p.empty) {
|
||||
i = (i + k - 1) % p.length;
|
||||
i = (i + k - 1) % cast(int)p.length;
|
||||
seq ~= p.pop(i);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue