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
|
# https://adventofcode.com/2023/day/1
|
||||||
|
|
||||||
NUMBER_DICT = {
|
NUMBER_DICT = {
|
||||||
"one": "on1e",
|
"one": "o1e",
|
||||||
"two": "tw2o",
|
"two": "t2o",
|
||||||
"three": "thr3ee",
|
"three": "t3e",
|
||||||
"four": "fo4ur",
|
"four": "4",
|
||||||
"five": "fi5ve",
|
"five": "5e",
|
||||||
"six": "si6x",
|
"six": "6",
|
||||||
"seven": "sev7en",
|
"seven": "7n",
|
||||||
"eight": "ei8ght",
|
"eight": "e8t",
|
||||||
"nine": "ni9ne",
|
"nine": "n9e",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue