Birthday Gift
CodeChefOpen on judge ↗
Vamika is determined to present her mother Tupperware vessels. She offered $n$ vessels that might be both in blue shade or in pink shade. Her mother's preferred shade is pink, So she thought to present her most vessels in pink shade. She has confined paint to shade vessels. She was allowed to do precisely one move: she chooses indices $i$ and $j$ (1 ≤ i ≤ j ≤ n) and shaded all vessels for which th
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