Rosetta Problems

The Number of Solutions for a Polynomial

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