作者Leon (Achilles)
站内Prob_Solve
标题Re: [闲聊] 用 C/C++ 处理大整数的四则运算
时间Tue Apr 22 14:06:33 2014
※ 引述《stiles (stiles)》之铭言:
: 小弟看到一题,在 https://code.google.com/codejam/contest/32016/dashboard#s=p0
: 重点是要实作大整数的加法与乘法(请看 large file )
: 小弟知道 Java 的 JDK 有在 java.math.* 里实作这个,
: 请问,在 C/C++ 的话,有立刻可以用的 api 或 class 吗?
: 自己实作好像在时间上不划算,因为 150 分钟内,共要完成 3 题,这题只是其中一题。
: 请教各位先进,有何建议呢?感谢您~
1. Use GMP..
https://gmplib.org/
2. If you want to make you life easy, try Python..
--
一箫一剑平生意
负尽狂名十五年
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 66.214.174.109
※ 文章网址: http://webptt.com/cn.aspx?n=bbs/Prob_Solve/M.1398146798.A.A78.html
1F:→ stiles:感恩~~ 04/22 16:54