All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars
 perplexus dot info

 Tough Puzzle (part 1) (Posted on 2007-08-09)
The following puzzle has just one solution.
```  TOUGH
+ TOUGH
------
PUZZLE
```
Can you find it?

... and this one has two solutions.

```  TOUGH
TOUGH
+ TOUGH
------
PUZZLE
```
Can you find them?

 See The Solution Submitted by Josie Faulkner Rating: 4.2500 (4 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
 computer solution | Comment 1 of 3

FOR t = 1 TO 9
taken(t) = 1

FOR p = 1 TO 9
IF taken(p) = 0 THEN
taken(p) = 1

FOR o = 0 TO 9
IF taken(o) = 0 THEN
taken(o) = 1

FOR u = 0 TO 9
IF taken(u) = 0 THEN
taken(u) = 1

FOR g = 0 TO 9
IF taken(g) = 0 THEN
taken(g) = 1

FOR h = 0 TO 9
IF taken(h) = 0 THEN
taken(h) = 1

FOR z = 0 TO 9
IF taken(z) = 0 THEN
taken(z) = 1

FOR l = 0 TO 9
IF taken(l) = 0 THEN
taken(l) = 1

FOR e = 0 TO 9
IF taken(e) = 0 THEN
taken(e) = 1

tough = 10000 * t + 1000 * o + 100 * u + 10 * g + h
puzzle = 100000 * p + 10000 * u + 1100 * z + 10 * l + e
IF 2 * tough = puzzle THEN PRINT "2 *"; tough; "="; puzzle
IF 3 * tough = puzzle THEN PRINT TAB(30); "3 *"; tough; "="; puzzle

taken(e) = 0
END IF
NEXT

taken(l) = 0
END IF
NEXT

taken(z) = 0
END IF
NEXT

taken(h) = 0
END IF
NEXT

taken(g) = 0
END IF
NEXT

taken(u) = 0
END IF
NEXT

taken(o) = 0
END IF
NEXT

taken(p) = 0
END IF
NEXT

taken(t) = 0
NEXT

finds

`                             3 * 34089 = 102267                             3 * 65908 = 1977242 * 93852 = 187704`

 Posted by Charlie on 2007-08-09 10:32:20

 Search: Search body:
Forums (0)