質問

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