문제

I am trying to do pow(2,500) in C++. But I think long long is not enough.

Someone told me I can use gmp.h. But how do I do a pow(2,500) in gmp?

도움이 되었습니까?

해결책

See Integer Exponentiation. Hint: choose either of the bottom two functions.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top