← All problemsSign in

A new begining

Chef thought of bringing a change in his life. He was bored by the cooking profession so he decided to start farming. He thought of buying a farm in Chef land. The farm in Chef Land can always be bought in the C shape(Not the inverted, neither upside down, Just simple C) and of size(3*3). The chef can choose any part of the farm available on the land $P$. Each part of the land is associated with t

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start