File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programming Diversions and the fly likes Enigma Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Other » Programming Diversions
Bookmark "Enigma " Watch "Enigma " New topic
Author

Enigma

Sameer Jamal
Ranch Hand

Joined: Feb 16, 2001
Posts: 1870
Assign all-different values to the letters in these words to make the equality true in English.

ONE + ONE + TWO + TWO + THREE + ELEVEN = TWENTY
Ryan McGuire
Ranch Hand

Joined: Feb 18, 2005
Posts: 1007
    
    3
Originally posted by Sameer Jamal:
Assign all-different values to the letters in these words to make the equality true in English.

ONE + ONE + TWO + TWO + THREE + ELEVEN = TWENTY


Surely you find or come up with a more original problem than this! As a Programming Diversion, this is similar enough to previous questions that it's no longer interesting. See this thread for instance.

...or am I just being overly picky?
Reid M. Pinchback
Ranch Hand

Joined: Jan 25, 2002
Posts: 775
I'd go for picky, if only because Sameer at least made the attempt at creating something diverting. Kinda nice to have a few relaxed forums on the site without all the energy of the heated debates that exist elsewhere. Maybe we should cut him some slack.


Reid - SCJP2 (April 2002)
Ryan McGuire
Ranch Hand

Joined: Feb 18, 2005
Posts: 1007
    
    3
Originally posted by Reid M. Pinchback:
I'd go for picky, if only because Sameer at least made the attempt at creating something diverting. Kinda nice to have a few relaxed forums on the site without all the energy of the heated debates that exist elsewhere. Maybe we should cut him some slack.


I will admit that I liked the 9+9x9 question. I also rather liked his fat software engineer "Distance problem."

And I'm not suggesting that the good Mr. Jamal stop posting here -- just that I'm sure he can do better than letter->digit substitution puzzles. He has before.

Ryan
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Does that mean you already solved it?
Sameer Jamal
Ranch Hand

Joined: Feb 16, 2001
Posts: 1870
Gist: If something interests you doesn�t mean everybody will find interest in it. It is hard to find things, which suits all.
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
The circus works because every year there is a new bunch of kids who haven't seen it yet. If you've seen a puzzle before, just ignore it. It will be new to somebody.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Reid M. Pinchback
Ranch Hand

Joined: Jan 25, 2002
Posts: 775
Originally posted by Stan James:
The circus works because every year there is a new bunch of kids who haven't seen it yet. If you've seen a puzzle before, just ignore it. It will be new to somebody.


Either that, or pretend you have the memory of a manager. Wait 15 minutes. Voila, new puzzle.

Ryan McGuire
Ranch Hand

Joined: Feb 18, 2005
Posts: 1007
    
    3
Originally posted by Stan James:
The circus works because every year there is a new bunch of kids who haven't seen it yet. If you've seen a puzzle before, just ignore it. It will be new to somebody.


Even the circus comes only once a year.

But I get your point; carry on.
Ryan McGuire
Ranch Hand

Joined: Feb 18, 2005
Posts: 1007
    
    3
Originally posted by David O'Meara:
Does that mean you already solved it?


Well since it was in Programming Diversions, I wrote a progam to solve the previous puzzle. Solving this one involves nothing more than replacing the initial data.

Ryan
Peter van de Riet
Ranch Hand

Joined: Apr 09, 2004
Posts: 112

Originally posted by Sameer Jamal:
ONE + ONE + TWO + TWO + THREE + ELEVEN = TWENTY

Because the V en the R are both occuring once in this puzzle, and also both on the same value (100-fold) this puzzle has no unique solution. For that reason, I think personally this is not a good puzzle.

175+175+601+601+68255+535957=605764
175+175+601+601+68955+535257=605764

2 more solutions if the 0 can stand in front of a number:
085+085+640+640+69155+575258=645863
085+085+640+640+69255+575158=645863

Anyone cares to see the program?


Each number system has exactly 10 different digits.
Reid M. Pinchback
Ranch Hand

Joined: Jan 25, 2002
Posts: 775
Maybe a more interesting "puzzle" would be how to write a program to generate these puzzles, and ensure that they had unique solutions...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Enigma