HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Arithmetic > problem:


50247 - Missing numbers

Guest
• Discussion of problem (1)

Section problems

• 50584 - Total invoice amount
• 50634 - Perfect numbers
• 50635 - Decomposition into terms
• 50652 - Prime Factorization
• 50653 - Long Divide
• 50662 - Prime numbers (2)
• 50684 - Sum of prime numbers fro...
• 50546 - Average Fuel Price
• 50247 - Missing numbers
• 50301 - Fractions to Decimals
• 50332 - Variance of a series
• 50342 - 100 Factorial
• 50338 - Convert Into Decimal
• 50343 - The number of Ending Zero...
• 50557 - nth Power of m (Long Multiply)
• 50637 - Number systems

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb. Difficulty Gamma

Given an equation of the form A + B = C, where A, B and C - non-negative integers numbers in decimal notation that some figures are replaced by question mark (?). An example of such an equation is R 2 34 = 4?. Required to substitute question marks with numbers so the equation becomes correct, or determine that it is impossible. Find only one possible solutions.

Input
Given the equation in the first row. The length of the equation does not exceed 200 characters. Input does not contain spaces. The input numbers and/or the result may contain question mark.
Output
Required to derive the true equality, derived from the original equation replacing question marks with digits. If there is no solution, display a message "No solution".

Enter
?2?4 + 9? = 355
Output
0264 + 91 = 355

Для отправки решений необходимо выполнить вход.

www.contester.ru