Marks :30
: 12 | : 0
Imagine you have a special keyboard with the following keys:
Key 1: Prints $$$A$$$ on screen
Key 2: $$$(Ctrl-A)$$$: Select screen
Key 3: $$$(Ctrl-C)$$$: Copy selection to buffer
Key 4: $$$(Ctrl-V)$$$: Print buffer on screen appending it after what has already been printed.
Find the maximum numbers of $$$A's$$$ that can be produced by pressing keys on the special keyboard $$$N$$$ times.
The first line contains a single integer $$$N$$$.$$$(2\le N \le75).$$$
Your task is to return the maximum number of $$$A's$$$ that can be on the screen after performing $$$N$$$ operations.
7
9
2
2
You need to login to view your submissions.
You need to login to view all submissions.
Result : Executed
Feel something is wrong with the test cases?
Result : Accepted
Test Cases :
But to Run or Submit the Problem, you need to Log In.
Continue to Log InYour challenge has been submitted successfully.
You will get a response soon via WhatsApp or Email.
Do let us know your issue.