Prize-winning Pumpkin Patch
CodeChefOpen on judge ↗
Your buddy is a pumpkin farmer trying to grow the biggest pumpkin he can so he can win the grand prize at the county fair. Pumpkins all grow at the same rate, but they stop growing once they touch another pumpkin since they try to maintain their perfectly circular shape. He staggers where and when he plants his pumpkins so they have the best chance of taking root. The farmer's pumpkin patch c
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