Read the puzzle at 12:22
DEFDBL A-Z
CLS
FOR w = 1 TO 9
used(w) = 1
FOR r = 1 TO 9
IF used(r) = 0 THEN
used(r) = 1
FOR h = 0 TO 9
IF used(h) = 0 THEN
used(h) = 1
FOR a = 0 TO 9
IF used(a) = 0 THEN
used(a) = 1
FOR t = 0 TO 9
IF used(t) = 0 THEN
used(t) = 1
what = 1000 * w + 100 * h + 10 * a + t
FOR o = 0 TO 9
IF used(o) = 0 THEN
used(o) = 1
who = 100 * w + 10 * h + o
FOR u = 0 TO 9
IF used(u) = 0 THEN
used(u) = 1
FOR m = 0 TO 9
IF used(m) = 0 THEN
used(m) = 1
rumor = 10001 * r + 1000 * u + 100 * m + 10 * o
IF what + who = rumor THEN
PRINT what; who, rumor
END IF
used(m) = 0
END IF
NEXT
used(u) = 0
END IF
NEXT
used(o) = 0
END IF
NEXT
used(t) = 0
END IF
NEXT
used(a) = 0
END IF
NEXT
used(h) = 0
END IF
NEXT
used(r) = 0
END IF
NEXT
used(w) = 0
NEXT
finds
WHAT WHO RUMOR
9523 958 10481
THEN
3567
WHAT TIME IS IT NOW
9523 3*46 *# *3 789 ?
It is now 12:34, having solved the puzzle.
O+R=9 or W
|
Posted by Charlie
on 2014-01-20 19:15:36 |