Using extremely large integer holding 3001 digits

前端 未结 2 787
春和景丽
春和景丽 2021-01-27 07:50

For example, how can I use the result of 1000^1000 for arithmetic? I don\'t think there\'s a library that can accommodate that, all I see at most is 100 number digits.

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-27 08:23

    Use an arbitrary-precision arithmetic library like GMP or Boost.Multiprecision.

提交回复
热议问题