← All problemsSign in

Coupons

Arjun and Atishay the heads of Coding and Logic team are now facing a problem. They have in total $N - 2$ hungry coordinators who are bugging them for their Shaastra food coupons after a hard day at Shaastra. But unfortunately, they have only $N/2$ coupons with them and they want all the coordinators to be treated fairly. They decide to give 1 coupon to a pair of coordinators but in such a way

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