No need to roll your own bignum for C++. For example, use GMP: https://gmplib.org/manual/C_002b_002b-Interface-General.html
On Wednesday, April 1, 2020 at 5:25:29 AM UTC-5, /dev/joe wrote: > > That is the trade-off you face when choosing a language. Some languages > may have more helpful features but be slower. In this case, once you start > doing math with bignums the speed advantage may be mostly negated, plus you > spend time coding up your own bignum class in C++. I will point out this > relevant bit from the FAQ, however: > During the round, can I use code written before the round? > > As long as you have a license to use it, yes. That means you can write > your own helper code, or collect your own personal library of code, as long > as the license terms of the code permit it. Some Code Jam contestants will > have competed on an ACM ICPC team, and many of those teams have their own > code books; check with your team's coach whether it's permissible for you > to use that code in a different context. > > > On Tue, Mar 31, 2020 at 10:23 PM PAGADALA SAINADTH <[email protected] > <javascript:>> wrote: > >> hmm got it. But in general, python and java results in more execution >> time when compared to c++ right? Is there any alternative when the input is >> 10^100 *?.* >> Any way thanks for the reply 😊. >> >> On Tuesday, March 31, 2020 at 11:29:54 PM UTC+5:30, porker2008 wrote: >>> >>> C++ does not have built-in support for big integers >>> >>> You can consider using other languages like python or Java(BigInteger) >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google Code Jam" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/google-code/0c3f36b0-5e45-4043-a77c-2d66299cad6c%40googlegroups.com >> >> <https://groups.google.com/d/msgid/google-code/0c3f36b0-5e45-4043-a77c-2d66299cad6c%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "Google Code Jam" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-code/8100d667-f728-4149-b655-a173a702b0e0%40googlegroups.com.
