Towers of Baksland
CodeChefOpen on judge ↗
Once, there lived a prince in Baksland named Baks. He was a newly assigned prince, and the land was barren. There was nothing but a few houses in the city. Therefore, King Baks decided to make some towers for the people of his city. He wanted to make his city attractive so he could get more revenue out of tourists. He experimented daily from dusk to dawn to get the perfect combination for his city
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