NewProject Coding is here — build features and fix bugs in real codebases with an AI assistantSee what's new

A pandigital sum is an addition equation where the digits 1 to 9 are used exactly once across all numbers in the equation. Your task is to assign each digit exactly once to the nine letters 'A' through 'I' to form three 3-digit numbers: "ABC", "DEF", and "GHI" (where 'A', 'D', and 'G' are the hundreds digits).

Count how many assignments satisfy the equation:

Test Cases
Input
Output
Expected