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

Kazi Sohan

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 |

Solve/Submission

# | 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 | Zeronfinity | Cpp14 | 0.37s |

14 | Morass | Cpp14 | 0.38s |

15 | sazal_dev | Cpp14 | 0.39s |

16 | imAnik | Cpp14 | 0.40s |

17 | Nazmul0092 | Cpp14 | 0.47s |

18 | noor148 | Cpp14 | 0.48s |

19 | vatsalsharma376 | Cpp14 | 0.49s |

20 | MAHRahat | Cpp14 | 0.51s |

21 | ____ | Cpp14 | 0.53s |

22 | nasif2587 | Cpp14 | 0.66s |

23 | PKP_007 | Cpp14 | 0.66s |

24 | deptapaul | Cpp14 | 0.66s |

25 | prodipdatta7 | Cpp14 | 0.67s |

26 | habib_rahman | Cpp14 | 0.70s |

27 | AlaminJust | Cpp14 | 0.72s |

28 | Puja1409 | Cpp14 | 0.72s |

29 | nuhu_iu | Cpp14 | 0.73s |

30 | rana_cse | Cpp14 | 0.74s |

31 | zyyxxx | Cpp14 | 0.74s |

32 | Aman_khan | Cpp14 | 0.75s |

33 | MRITuhin | Cpp14 | 0.78s |

34 | FariD | Cpp14 | 0.78s |

35 | pulak_ict_mbstu | Cpp14 | 0.80s |

36 | FahimSifnatul | Cpp14 | 0.81s |

37 | sujan13 | Cpp14 | 0.81s |

38 | Rajan_sust | Cpp14 | 0.82s |

39 | Koushik_12 | Cpp14 | 0.83s |

40 | badhansen123 | Cpp14 | 0.83s |

41 | smriad | Cpp14 | 0.83s |

42 | SakibAlamin | Cpp14 | 0.84s |

43 | Sarwar05 | Cpp14 | 0.84s |

44 | inzamamdu | Cpp14 | 0.84s |

45 | shikhar | Cpp14 | 0.86s |

46 | ash12 | Cpp14 | 0.87s |

47 | Ansarul_14 | Cpp14 | 0.88s |

48 | sifat_15 | Cpp | 0.88s |

49 | prdx9_abir | Cpp14 | 0.92s |

50 | Alice_2 | Cpp14 | 0.92s |

Copyright © 2015-2016 Dev Skill.

Feedback
#### Your feedback is our precious!

## Thank you for providing feedback! Our developers will be happy :)

## Sorry there was a problem when submitting the feedback. Please try again. :(