Multiples of 11 and 13
CodeChefOpen on judge ↗
PROBLEM STATEMENT If we list all the natural numbers below $25$ that are multiples of $11$ or $13$, we get $11, 13 and 22$. The sum of these multiples is $46$. Find the sum of all natural numbers that are multiples of either $11$ or $13$ and are below $K$. ###Input: - First line will contain $T$, number of testcases. Then the testcases follow. - Each testcase contains of a single line of input
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