← All problemsSign in

Reap What You Sow

In the cursed land of earth where all crops are failing, Tom Cooper is trying to grow $n$ acres of crop this season, and he can grow one crop in an acre. Tom has two sets of $n$ crop seeds each. In the two sets, the two $i^{th}$ crop seeds are the same type crop. The first set of $n$ crop seeds are independent and each of them require their own preparation and can be grown independently. The $i

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