Easy15 pts
Viral Advertising
Day1: 5 shared, 5/2 liked. Each day: liked*3 shared, floor(shared/2) liked. Total likes after n days?
Input
n
Output
Total likes.
Sample
3
Expected
9
Loading editor…
Output
No output yet. Run your code to see results.
Day1: 5 shared, 5/2 liked. Each day: liked*3 shared, floor(shared/2) liked. Total likes after n days?
n
Total likes.
3
9
Loading editor…
No output yet. Run your code to see results.