Create lightOJ 1306 - solutions to an equation (solution).cpp

solution of problem 'loj 1306 solutions to an equation' in C++