14 lines
414 B
Plaintext
14 lines
414 B
Plaintext
Write a Thrax grammar that adds 4 to a non-negative integer (in decimal
|
|
notation).
|
|
Napisz gramatykę Thraxową, która do liczby nieujemnej (w zapisie
|
|
dziesiętnym) dodaje 4.
|
|
|
|
Hints:
|
|
- easier to define reverted automaton and then use Reverse
|
|
- consider two cases: adding with carry and without
|
|
- be careful with sequences of nines
|
|
- sometimes the result will one digit longer
|
|
|
|
POINTS: 2
|
|
DEADLINE: 2020-01-20 18:50
|