C++ - GMP pow() function
-
14-04-2021 - |
Frage
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
?
Lösung
See Integer Exponentiation. Hint: choose either of the bottom two functions.
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow