Co-prime Leela 2
CodeChefOpen on judge ↗
A co-prime pair of two numbers p1 and p2 will be given as input. You have to find the sum of the numbers in a range of N1..N2 (N1 <= n <= N2) which are divisible by either any af the numbers or both those two numbers. ###Input: - First line will contain $p1$ $p2$, two space separated co-prime numbers. - Second line will contain $N1$ $N2$, the range. ###Output: Output in a single line answer gi
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