从无法访问的项目Fork
体验新版 GitCode,发现更多精彩内容 >>
added overflow check in the double -> long long conversion trick to avoid integer overflows. I think this was not needed in practical terms, but it is safer
拖放文件到此处或点击上传