Rosetta Problems

The Number of the Real Roots of a Cubic Equation

https://onlinejudge.u-aizu.ac.jp/problems/2220