# DCP-238: Even divisor Back to All Problems

Medium Math > Number Theory

Bunty loves to play with even number. Now he wants to know the sum of even divisors of a number. Help him to find out. **Note: M is divisor of N if dividing N by M leaves no remainder.** Input: ------ Input starts with an integer T (1<=T<=500000), denoting the number of test cases. Each case contains one integer (0<=n<=10^7). You have to find the sum of even divisors of n. Output: ------- For every test case output a single line denoting the sum of even divisors of n. Sample Input ------------ 3 6 10 12 Sample Output ------------- 8 12 24

### Problem Limits

 Language Time Limit (seconds) C 2.00 C++ 2.00 C++14 2.00 C# 2.00 Go 2.00 Java 2.00 JavaScript 2.00 Objective-C 2.00 Perl 2.00 PHP 2.00 Python 2.00 Python3 2.00 Ruby 2.00 VB.Net 2.00

# 219/1257

Solve/Submission

### Ranking

# User Language Timing
01 feodorv Cpp14 0.14s
02 Aizen Cpp 0.18s
03 deder Cpp14 0.18s
04 rafy Cpp14 0.20s
05 Robbinb1993 Cpp 0.20s
06 ksohan Cpp14 0.21s
07 tariqiitju Cpp14 0.21s
08 Bruteforceman Cpp14 0.21s
09 ssavi Cpp14 0.22s
10 giash_uddin Cpp14 0.22s
11 monir769 Cpp 0.23s
12 a_rahman Cpp14 0.33s
13 nakib_ruet Cpp14 0.34s
14 Zeronfinity Cpp14 0.37s
15 Morass Cpp14 0.38s
16 sazal_dev Cpp14 0.39s
17 imAnik Cpp14 0.40s
18 Nazmul0092 Cpp14 0.47s
19 noor148 Cpp14 0.48s
20 vatsalsharma376 Cpp14 0.49s
21 MAHRahat Cpp14 0.51s
22 ____ Cpp14 0.53s
23 nasif2587 Cpp14 0.66s
24 PKP_007 Cpp14 0.66s
25 deptapaul Cpp14 0.66s
26 prodipdatta7 Cpp14 0.67s
27 habib_rahman Cpp14 0.70s
28 AlaminJust Cpp14 0.72s
29 Puja1409 Cpp14 0.72s
30 nuhu_iu Cpp14 0.73s
31 rana_cse Cpp14 0.74s
32 zyyxxx Cpp14 0.74s
33 Aman_khan Cpp14 0.75s
34 MRITuhin Cpp14 0.78s
35 FariD Cpp14 0.78s
36 pulak_ict_mbstu Cpp14 0.80s
37 sujan13 Cpp14 0.81s
38 FahimSifnatul Cpp14 0.81s
39 Rajan_sust Cpp14 0.82s
41 trifiasco Cpp14 0.83s
42 Koushik_12 Cpp14 0.83s
44 SakibAlamin Cpp14 0.84s
45 inzamamdu Cpp14 0.84s
46 Sarwar05 Cpp14 0.84s
47 shikhar Cpp14 0.86s
48 ash12 Cpp14 0.87s
49 Ansarul_14 Cpp14 0.88s
50 sifat_15 Cpp 0.88s
Feedback