← RoseCode

ROSECODE 015

Triplets

elasolova · Programming ·

Given:

(1) X,Y, and Z are different integers between 0 and 9 (both included)

(2) 10×X+Y10×Y+Z=XZ (with infinite precision)

How many triplets are there?

Source: Prolog Contest 1 Ithaca