Birthday Cake
CodeChefOpen on judge ↗
It's the 20th birthday of your best friend Abir and it's the time to give him a massive surprise. As a part of the surprise, you have decided to order 2 big cakes (as he is foodie)! But there arises a little problem. The cakes are circular in shape and you want to pick a box (yeah, it is also circular in shape) in which the cakes will be fitted perfectly. You're given the diameters of two cakes.
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