作者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/m.aspx?n=bbs/Prob_Solve/M.1398146798.A.A78.html
1F:→ stiles:感恩~~ 04/22 16:54