Lets Do Some Poetry
CodeChefOpen on judge ↗
Chanchal likes to write poetry. Today , she decided to write a X pages long poetry , but unfortunately her notebook has only Y pages left in it.Thus she went to buy a new notebook to the stationary shop. She looked to some N notebooks , where the number of pages and price of the ith one are Pi pages and Ci rupees. She has spent some money preparing for her best friend's birthday , she has only k r
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