twenty + twenty + thirty = seventy
546250 546250 593750 1686250
546750 546750 593250 1686750
r
entity
625350
The word is "entity" and the alphametic solution is
546250 + 546250 + 593750 = 1686250
DEFDBL A-Z
CLS
FOR t = 1 TO 9
IF used(t) = 0 THEN
used(t) = 1: u$(t) = "t"
FOR s = 1 TO 9
IF used(s) = 0 THEN
used(s) = 1: u$(s) = "s"
FOR w = 0 TO 9
IF used(w) = 0 THEN
used(w) = 1: u$(w) = "w"
FOR e = 0 TO 9
IF used(e) = 0 THEN
used(e) = 1: u$(e) = "e"
FOR n = 0 TO 9
IF used(n) = 0 THEN
used(n) = 1: u$(n) = "n"
FOR y = 0 TO 9
IF used(y) = 0 THEN
used(y) = 1: u$(y) = "y"
twenty = t * 100010 + w * 10000 + e * 1000 + n * 100 + y
FOR i = 0 TO 9
IF used(i) = 0 THEN
used(i) = 1: u$(y) = "i"
FOR h = 0 TO 9
IF used(h) = 0 THEN
used(h) = 1: u$(y) = "h"
FOR r = 0 TO 9
IF used(r) = 0 THEN
used(r) = 1: u$(y) = "r"
thirty = t * 100010 + h * 10000 + i * 1000 + r * 100 + y
FOR v = 0 TO 9
IF used(v) = 0 THEN
used(v) = 1: u$(v) = "v"
seventy = s * 1000000 + e * 101000 + v * 10000 + n * 100 + t * 10 + y
IF 2 * twenty + thirty = seventy THEN
PRINT twenty; thirty, seventy
END IF
used(v) = 0
END IF
NEXT
used(r) = 0
END IF
NEXT
used(h) = 0
END IF
NEXT
used(i) = 0
END IF
NEXT
used(y) = 0
END IF
NEXT
used(n) = 0
END IF
NEXT
used(e) = 0
END IF
NEXT
used(w) = 0
END IF
NEXT
used(s) = 0
END IF
NEXT
used(t) = 0
END IF
NEXT
|
Posted by Charlie
on 2011-10-12 14:59:56 |