Divisor Summation
CodeChefOpen on judge ↗
Given a natural number n (1 Input An integer stating the number of test cases (equal to about 200000), and that many lines follow, each containing one integer between 1 and 500000 inclusive. Output One integer each line: the divisor summation of the integer given respectively. Example Input: 3 2 10 20 Output: 1 8 22
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