You are provided with four possible operations that can be done on the editor (each operation requires one keyboard hit).
- A
- Ctrl+A
- Ctrl+C
- Ctrl+V
Now you can hit the keyboard N times and you need to find the maximum number of A‘s that can be printed. Also print the sequence of keyboard hits.
Googled for the answer:
http://podlipensky.com/post/2011/02/07/Sundays-puzzle.aspx