You have a special keyboard with four keys:
Key A): Prints a single 'A' on the screen.
Key Ctrl A): Selects the entire screen.
Key Ctrl C): Copies the selected content into a buffer.
Key Ctrl V): Prints the buffer content onto the screen.
Given an integer n, return the maximum number of 'A' characters that can be displayed on the screen using at most n key presses.
Constraints:
n
You have a special keyboard with four keys:
Key A): Prints a single 'A' on the screen.
Key Ctrl A): Selects the entire screen.
Key Ctrl C): Copies the selected content into a buffer.
Key Ctrl V): Prints the buffer content onto the screen.
Given an integer n, return the maximum number of 'A' characters that can be displayed on the screen using at most n key presses.
Constraints:
n