You only have to calculate the height. And the information you get for this is enough. I used this formula to write a program in a contest in codeforces. The problem is same as yours. No change."Cocktail"
FRR
- 1
- 1