Ad
Code
Diff
  • from functools import reduce; tit = lambda *x : reduce(int.__add__, x)
    • from functools import reduce; tit = lambda *x : reduce(lambda a, b : a.__add__(b), x)
    • from functools import reduce; tit = lambda *x : reduce(int.__add__, x)
module solution;

import std.math : sqrt;
import std.stdio: writefln;

export long isqrt(ulong n) 
{
    writefln("n: %d", n);
    return cast(ulong) sqrt(cast(double) n);
}