Rosetta Problems

フェルマー方程式 (Fermat)

https://atcoder.jp/contests/joisc2007/tasks/joisc2007_fermat