Ranges
CodeChefOpen on judge ↗
Given a number n, you have to print the sum of numbers that are divisible by either 7 or 11 that are smaller than n. Input First line contains an integer t that is number of queries.Each of the next t lines contain an integer n. Output For each query print the sum of numbers smaller than n that are either divisible by 7 or 11. Constraints - 1 ≤ m,n ≤ 1000 - 1 ≤ t ≤ 100 Example Inp
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