HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Problems from Olympiads.ru > problem:


240. 50247 - Missing numbers

Guest
• Discussion of problem (1)

Volume problems

• 138. 50732 - Sorting
• 147. 50251 - Symmetric matrix
• 159. 50668 - Triangle
• 206. 50252 - Birthday
• 213. 50769 - Arithmetic expression
• 217. 50253 - Timer
• 234. 50249 - Ladders
• 235. 50250 - The Knight
• 240. 50247 - Missing numbers
• 272. 50707 - Rebus
• 275. 50691 - The traveling salesma...

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