#P2142. High Precision Subtraction
High Precision Subtraction
High Precision Subtraction
Given two huge integers A and B, compute their difference (A - B). These integers can be extremely large such that typical data types are insufficient. Use high precision arithmetic to calculate the result.
inputFormat
The input consists of a single line containing two space-separated integers (A) and (B). (A) and (B) are non-negative integers in string format which can be very large.
outputFormat
Output a single integer, the result of (A - B). Note that the result may be negative if (A < B).
sample
123456789123456789 987654321
123455801469135468