Long Arithmetic
Long Arithmetic
Introduction
Long Arithmetic is a set of data structures and algorithms that allow processing much larger numbers than can fit in standard data types. Let us present several types of long arithmetic.
Data structure
We will store numbers as vector<int>, in which each element is one digit of the number (in reverse order). For example, for we will store .