Just another update

This commit is contained in:
Ingy döt Net 2015-02-20 00:35:01 -05:00
parent a25938f123
commit 00a190b0a6
6591 changed files with 94363 additions and 23227 deletions

View file

@ -1,6 +1,6 @@
import std.stdio, std.bigint, std.math;
T gcd(T)(T a, T b) pure /*nothrow*/ {
T gcd(T)(T a, T b) pure nothrow {
while (b) {
immutable t = b;
b = a % b;
@ -9,7 +9,7 @@ T gcd(T)(T a, T b) pure /*nothrow*/ {
return a;
}
T lcm(T)(T m, T n) pure /*nothrow*/ {
T lcm(T)(T m, T n) pure nothrow {
if (m == 0) return m;
if (n == 0) return n;
return abs((m * n) / gcd(m, n));