Disha And Roses
CodeChefOpen on judge ↗
Disha loves roses. She wants to plant them before spring festival she bought $N$ plants to plant. For each plant Disha knows exactly how many days it need to bloom after plantation she gets a news that spring festival is preponed and will be held after day $D$ from now. She wants your help to figure out the maximum number of plants in which flowers will bloom before the festival if she starts
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