mirror of
https://github.com/kennethreitz/dive-into-python3.git
synced 2026-06-05 23:10:17 +00:00
fix overzealous global replace
This commit is contained in:
@@ -36,7 +36,7 @@ S = 6
|
||||
T = 2
|
||||
E = 4</code></pre>
|
||||
|
||||
<p>Puzzles like this are called <i>cryptarithms</i> or <i>alphametics</i>. The letters spell out actual words, but if you replace each letter with a digit from <code>0–10</code>, it also “spells” an arithmetic equation. The trick is to figure out which letter maps to each digit. All the occurrences of each letter must map to the same digit, no digit can be repeated, and no “word” can start with the digit 0.
|
||||
<p>Puzzles like this are called <i>cryptarithms</i> or <i>alphametics</i>. The letters spell out actual words, but if you replace each letter with a digit from <code>0–9</code>, it also “spells” an arithmetic equation. The trick is to figure out which letter maps to each digit. All the occurrences of each letter must map to the same digit, no digit can be repeated, and no “word” can start with the digit 0.
|
||||
|
||||
<aside>The most well-known alphametic puzzle is <code>SEND + MORE = MONEY</code>.</aside>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user