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

Home > Numbers
Tough Puzzle (part 1) (Posted on 2007-08-09) Difficulty: 3 of 5
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.)
Solution computer solution | Comment 1 of 4

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 = 197724
2 * 93852 = 187704

  Posted by Charlie on 2007-08-09 10:32:20
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (3)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information