Nishant and chocolates
CodeChefOpen on judge ↗
Nishant has a huge crush on a girl of his class named Jayanti. He wants to impress her by giving her some chocolates. He started saving some chocolates every day for N days. On ith day Nishant saves i chocolates. Jayanti will get impressed by Nishant if he can give her exactly the half of the chocolates he has collected in N days. Help Nishant to find out if he can impress Jayanti. Input First l
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