djfz-2019-s439415/TaskX07/description.txt

12 lines
322 B
Plaintext
Raw Permalink Normal View History

2020-01-09 10:43:39 +01:00
Write a Thrax grammar that adds 4 to a non-negative integer (in decimal
notation).
2020-01-08 22:53:31 +01:00
2020-01-09 10:43:39 +01:00
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
2020-01-08 22:53:31 +01:00
POINTS: 2
2020-01-09 10:43:39 +01:00
DEADLINE: 2020-01-20 18:50