Editorial for COCI '15 Contest 3 #4 Slon
Submitting an official solution before solving the problem yourself is a bannable offence.
The condition from the task is that the expression is a first degree polynomial of the form
One of the ways we can do this is using the command Another way is to parse the expression from infix to postfix notation using the "shunting-yard" algorithm. Another approach is to convert the expression to postfix notation and then the addition, multiplication and subtraction is performed over polynomials with maximal degree of eval
in Python.
Comments