Does a listing of my program count as justification of the answer? Here it is:
for ($A=2; $A<=9; $A++) {
for ($B=1; $B<$A; $B++) {
for ($C=0; $C<$B; $C++) {
if ($A + $B + $C == 9) {
for ($D=4; $D<=9; $D=$D+2) {
if (($D != $A) && ($D != $B) && ($D != $C)) {
$E=$D-2;
if (($E != $A) && ($E != $B) && ($E != $C)) {
$F=$E-2;
if (($F != $A) && ($F != $B) && ($F != $C)) {
for ($G=7; $G<=9; $G=$G+2) {
if (($G != $A) && ($G != $B) && ($G != $C)
&& ($G != $D) && ($G != $E) && ($G != $F)) {
$H=$G-2;
if (($H != $A) && ($H != $B) && ($H != $C)
&& ($H != $D) && ($H != $E) && ($H != $F)) {
$I=$H-2;
if (($I != $A) && ($I != $B) && ($I != $C)
&& ($I != $D) && ($I != $E) && ($I != $F)) {
$J=$I-2;
if (($J != $A) && ($J != $B) && ($J != $C)
&& ($J != $D) && ($J != $E) && ($J != $F)) {
print "$A$B$C-$D$E$F-$G$H$I$J\n";
}
}
}
}
}
}
}
}
}
}
}
}
}
Now, I'm looking at this in a more logical manner. The DEF part can
only be 420, 642, or 864, and the GHIJ part can only be 7531 or 9753.
A quick pairing listing the missing digits gives:
420-7531 6,8,9 does not add to 9
642-7531 0,8,9 does not add to 9
864-7531 0,2,9 does not add to 9
420-9753 1,6,8 does not add to 9
642-9753 0,1,8 this one works
864-9753 0,1,2 does not add to 9
The answer is 810- 642-9753.
| 1. Marivi Bungay-Domingo | Philippines |
| 2. James Alarie | Flint, Michigan |
| 3. Martin Round | Studley, Warwickshire, West Midlands, United Kingdom |
| 4. Alyx Wells |
Mountain View High School, Mountain View, Wyoming |
| 5. Kursat Guzey |
Birdville Independent School District, Haltom City, Texas |
| 6. Anna Tetzlaf and Eliza Sheffield | Tuscaloosa, Alabama |
| 7. David Day | Harlingen, Texas | 8. Randy Lerner |
Mundelein High School, Mundelein, Illinois |
| 9. Jim Hooker | Johnson City, Tennessee |
| 10. Brijesh Dave | Mumbai city, Maharashtra, India |
| 11. Adalene Thomas |
Mountain View High School, Mountain View, Wyoming |