Solutions to an Equation

LightOJ - 1306