Problem

Source: All-Russian Olympiad 2018

Tags: algebra



Determine the number of real roots of the equation $$|x|+|x+1|+\cdots+|x+2018|=x^2+2018x-2019$$