thomiceli revised this gist 14 hours ago. Go to revision
1 file changed, 18 insertions
aa.md(file created)
| @@ -0,0 +1,18 @@ | |||
| 1 | + | # gg | |
| 2 | + | ||
| 3 | + | ```cpp | |
| 4 | + | #include | |
| 5 | + | using namespace boost::multiprecision; | |
| 6 | + | using namespace std; | |
| 7 | + | ||
| 8 | + | int128_t boost_product(long long A, long long B) | |
| 9 | + | { | |
| 10 | + | int128_t ans = (int128_t)A * B; | |
| 11 | + | return ans; | |
| 12 | + | } | |
| 13 | + | ||
| 14 | + | long long first = 98745636214564698; | |
| 15 | + | long long second = 7459874565236544789; | |
| 16 | + | cout << "Product of " << first << " * " << second << " = \n" | |
| 17 | + | << boost_product(first, second); | |
| 18 | + | ``` | |
Newer
Older