Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
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"
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"