Register
|
Login
HOME
PROBLEMSET
ROADMAP
COMPETITION
TOPIC
RANKING
GUIDE
MASHUP
ABOUT
CONTACT
Problem
Submit
Results
Sum of divisors - MarisaOJ: Marisa Online Judge
Sum of divisors
Time limit: 1000 ms
Memory limit: 256 MB
Calculate the sum of positive divisors of given integer $n$. ### Input - An integer $n$. ### Output - The sum of positive divisors $n$. ### Constraints - $1 \le n \le 10^{12}$. ### Example Input: ``` 10 ``` Output: ``` 18 ```
Other problems (Level 0)
Sum of divisors
Equal pairs
GCD and LCM
3
Consecutive
Prison
Topic
Basic
Rating
800
Solution (1)
Solution