This is another exercise about Fermat’s last theorem, which was explained in the exercise problem://problemsjutge.org:problems/p1/roura/fermat-1.pbm
Write a program that, given four natural numbers with and , prints the number of solutions to the equation such that and .
Input has several cases. Each case consists of four natural numbers such that and .
For every case, print in a line the number of solutions to the equation that fulfill and .
Author: Unknown
Translator: Carlos Molina
Generation: 2026-01-25T12:06:56.829Z
© Jutge.org, 2006–2026.
https://jutge.org