samples.tutorials.puzzles
Class SendMoreMoney
java.lang.Object
samples.tutorials.PatternExample
samples.tutorials.puzzles.SendMoreMoney
- All Implemented Interfaces:
- Example
public class SendMoreMoney
- extends PatternExample
The famous SEND + MORE = MONEY problem.
The Send More Money Problem consists in finding distinct digits for the letters D, E, M, N, O, R, S, Y
such that S and M are different from zero (no leading zeros) and the equation SEND + MORE = MONEY is satisfied.
- Since:
- 3 déc. 2008 version 2.0.1
- Version:
- 2.0.1
- Author:
- Arnaud Malapert
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SendMoreMoney
public SendMoreMoney()
printDescription
public void printDescription()
- Overrides:
printDescription
in class PatternExample
buildModel
public void buildModel()
- Specified by:
buildModel
in class PatternExample
buildSolver
public void buildSolver()
- Specified by:
buildSolver
in class PatternExample
solve
public void solve()
- Specified by:
solve
in class PatternExample
prettyOut
public void prettyOut()
- Specified by:
prettyOut
in class PatternExample
main
public static void main(String[] args)
Copyright © 2012. All Rights Reserved.