#P1581. A+B Problem(升级版)
A+B Problem(升级版)
Description
Here, works in a peculiar way. Carries follow the sequence of prime bases. For example: = (using to separate each digit). The units place uses base 2, the tens place uses base 3, the hundreds place uses base 5, the thousands place uses base 7, the ten-thousands place uses base 11, and so on. The highest place of the two addends is the ten-thousands place (the digit at this place may have two decimal digits, e.g., 10).
Input Format
Input a string of the form .
Output Format
Output the result of the addition.
1,0+2,1
1,0,1
Hint
Translated by ChatGPT 5
京公网安备 11011102002149号