x at the end of the text;
- **Select** selects all the text on the screen;
- **Copy** puts the selection into the clipboard;
- **Paste** appends the clipboard contents to the end of the text.
The screen and the clipboard start empty. Given presses, the number of key presses you have, return the largest number of letters that can be on the screen after at most presses presses.presses=5 → 5
Typing five letters is best: select, copy and paste would not gain anything within so few presses.
presses=8 → 12
Letter, letter, letter, select, copy, paste, paste, paste: 3 + 3 · 3 = 12 letters.
presses=1 → 1
presses=5
5
Run checks the first 3 tests in your browser. Submit checks all 52 tests on the server, hidden ones included.