height after year
CodeChefOpen on judge ↗
Root wants to become the largest , or at least to become larger than his brother stoke . Right now, root and stoke height a and b respectively. It's guaranteed that Root height is smaller than or equal to his brother's height. root eats a lot and his height is tripled after every year, while stoke height is doubled after every year. After how many full years will root become strictly larger (s
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start