When the sum of a + b is too large, an overflow occurs. The long long here is signed long long. After overflow, it is truncated according to the number of digits of the long long, and then converted into a decimal number, which may become a negative number. Situation, then something went wrong.
When the sum of a + b is too large, an overflow occurs. The long long here is signed long long. After overflow, it is truncated according to the number of digits of the long long, and then converted into a decimal number, which may become a negative number. Situation, then something went wrong.