1
#include <iostream>
#include <limits>
int main(void) {
    cout << std::numeric_limits<uint64_t>::max();
    return 0;    
}

上記のコードは (私のマシンでは) を出力18446744073709551615しますが、少なくとも 25 桁の数字を乗算しようとしています。より大きい 2 つの整数の乗算を適切に処理する方法はuint64?

4

1 に答える 1

3

You need to use a library that handles big numbers. Here are some of them:

于 2014-01-12T08:49:12.020 に答える