Example: SEND+MORE=MONEY puzzle More...
Public Types | |
enum | { MODEL_SINGLE, MODEL_CARRY } |
Model variants. More... | |
Public Member Functions | |
Money (const Options &opt) | |
Actual model. More... | |
virtual void | print (std::ostream &os) const |
Print solution. More... | |
Money (bool share, Money &s) | |
Constructor for cloning s. More... | |
virtual Space * | copy (bool share) |
Copy during cloning. More... | |
![]() | |
ScriptBase (void) | |
Default constructor. More... | |
ScriptBase (bool share, ScriptBase &e) | |
Constructor used for cloning. More... | |
virtual void | compare (const Space &, std::ostream &os) const |
Compare with s. More... | |
Protected Attributes | |
IntVarArray | le |
Array of letters. More... | |
Static Protected Attributes | |
static const int | nl = 8 |
Number of letters. More... | |
Related Functions | |
(Note that these are not member functions.) | |
int | main (int argc, char *argv[]) |
Main-function. More... | |
Additional Inherited Members | |
![]() | |
static std::ostream & | select_ostream (const char *name, std::ofstream &ofs) |
Choose output stream according to name. More... | |
template<class Script , template< class > class Engine, class Options > | |
static void | run (const Options &opt, Script *s=NULL) |
Example: SEND+MORE=MONEY puzzle
Well-known cryptoarithmetic puzzle. Henry Dudeney, Strand Magazine, July 1924.
|
inline |
|
inlinevirtual |
Print solution.
Reimplemented from Gecode::Driver::ScriptBase< BaseSpace >.
|
inlinevirtual |
|
related |
|
protected |