← All problemsSign in

IEEE357

A number is said to be an IEEE number if it is divisible by 3 or 5 or 7. Given two integers $l$ and $r$ with $l\leq r$, we want to know how many IEEE numbers are there between $l$ and $r$ (including both end points). For exam if $l=101$ and $r =110$. The answer is 4. The IEEE numbers between 101 and 110 are 102,105,108 and 110. ###Input: - There will be 10000 test cases - Each testca

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