Editorial for Ifri y la ecuación.
Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.
Submitting an official solution before solving the problem yourself is a bannable offence.
Es suficiente con comprobar cada posible variante y, en caso de haber varias, obedecer el orden de prioridad establecido. Un error a evitar es utilizar la división entera, porque trunca la parte decimal (una buena forma de solucionar esto es comprobar si en lugar de ).
Comments