← All problemsSign in

cAn YoU sOlVe It

Shanaya loves to take part in competitive coding contests. Today, when she was attending one, she was able to solve all problems except one. The unsolved problem was- A number $x$ was given and she needed to find out the total number of possible pairs $(p, q)$ such that they follow the following questions: - $Sum(p) \lt Sum(q)$, where $Sum(r)$ denotes the sum of the digits of integer $r$. - $0 \

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