https://www.cnblogs.com/tiny656/p/4108976.html 代码: https://github.com/haidragon/arithmetic