reduce replacement strings to minimum
This commit is contained in:
parent
d8fcaedfda
commit
a47cb11a42
1 changed files with 9 additions and 9 deletions
|
|
@ -3,15 +3,15 @@
|
|||
# https://adventofcode.com/2023/day/1
|
||||
|
||||
NUMBER_DICT = {
|
||||
"one": "on1e",
|
||||
"two": "tw2o",
|
||||
"three": "thr3ee",
|
||||
"four": "fo4ur",
|
||||
"five": "fi5ve",
|
||||
"six": "si6x",
|
||||
"seven": "sev7en",
|
||||
"eight": "ei8ght",
|
||||
"nine": "ni9ne",
|
||||
"one": "o1e",
|
||||
"two": "t2o",
|
||||
"three": "t3e",
|
||||
"four": "4",
|
||||
"five": "5e",
|
||||
"six": "6",
|
||||
"seven": "7n",
|
||||
"eight": "e8t",
|
||||
"nine": "n9e",
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue