Is __int 128 the largest data type in cpp or is there something bigger?
# | User | Rating |
---|---|---|
1 | tourist | 3985 |
2 | jiangly | 3741 |
3 | jqdai0815 | 3682 |
4 | Benq | 3529 |
5 | orzdevinwang | 3526 |
6 | ksun48 | 3489 |
7 | Radewoosh | 3483 |
8 | Kevin114514 | 3442 |
9 | ecnerwala | 3392 |
9 | Um_nik | 3392 |
# | User | Contrib. |
---|---|---|
1 | cry | 169 |
2 | atcoder_official | 162 |
2 | maomao90 | 162 |
2 | Um_nik | 162 |
5 | djm03178 | 158 |
6 | -is-this-fft- | 157 |
7 | adamant | 155 |
7 | awoo | 155 |
9 | Dominater069 | 154 |
10 | TheScrasse | 151 |
Is __int 128 the largest data type in cpp or is there something bigger?
Name |
---|
A custom one called BigInt
is this a good answer .
never use __int128
some times it is needed you shouldn't use it all the time but some problems require it where big multiplication or big numbers or other factors come into account
personally i prefer long double over __int128
the only time i saw __int128 being used was when declaring a very big prime to use it as mod . But that was only one problem with so many other solutions without __int128
I've only used int 128 when you have to find a number bigger than 2^64 that you eventually take modulo a prime, then convert it into long long.
For example:
__int128 n=1000000000000000000000000; //example
n%=998244353;
long long n2=n;
cout<<n2<<endl;
Check out the Boost library. You can't use it for CF though.
__int128 is the largest default data type in c++, but custom data type Bigint is the biggest datatype and it`s custom
the largest data type ever known to man is my pp