N最高可达2 ^ 31.我想计算N的准确值!mod 2 ^ 32.任何语言都可以,但我希望详细解释算法.时间限制<1秒
algorithm biginteger factorial modulo
algorithm ×1
biginteger ×1
factorial ×1
modulo ×1