Devesh and Remainder
CodeChefOpen on judge ↗
Problem Description Devesh is very interested in the division operation. His teacher taught him that on dividing two numbers, we get Quotient=(num1/num2) and Remainder=(num1%num2). His friend Vanissa gives him an interesting problem to make him acquaint with division. She gives Devesh a very large number n and another number m. She asks Devesh to find out the remainder of every suffix of n when d
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