Pyromaniac
CodeChefOpen on judge ↗
Felix is a pyromaniac. He has an obsessive desire to set fire to things, but he saw the recent Mr. Beast video and decided he needs to plant some trees .If Felix has burned j logs so far with calorific value c he must donate at least 2^j x c dollars to teamtrees.org . For example, if he burns 3 logs with calorific value counts in the following order [5,7,10 ] , the amount he will need to don
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